• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

GoogleCloudPlatform / cloud-errors-nodejs / 147
94%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2016 06:24AM UTC
Jobs 4
Files 23
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
147

Pull #54

travis-ci

Cristian Cavalli
Add log-level option to runtime configuration #51

Add the `logLevel` property to the runtime configuration and modify
the logger creation flow to parse this option first (if applicable)
and to use a singular instance of the logger class upon library
init. Add corresponding tests and update documentation accordingly.
Add a script to `package.json` for easy coverage without coveralls:
`npm run-script coverage`.

**Original config object:**

```JS
var errors = require('@google/cloud-errors').start({
  projectId: 'my-project-id',
  key: 'my-api-key',
  reportUncaughtExceptions: false, // defaults to true.
  serviceContext: {
    service: 'my-service',
    version: 'my-service-version'
  }
});
```

**Updated configuration object:**
*Notice the `logLevel` property*

```JS
var errors = require('@google/cloud-errors').start({
  projectId: 'my-project-id',
  key: 'my-api-key',
  reportUncaughtExceptions: false, // defaults to true.
  logLevel: 0, // defaults to logging warnings
  serviceContext: {
    service: 'my-service',
    version: 'my-service-version'
  }
});
```

Related issues:
Fixes #51
Pull Request #54: Add log-level option to runtime configuration #51

609 of 629 relevant lines covered (96.82%)

140.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 147.1 25 Aug 2016 06:24AM UTC 0
96.82
Travis Job 147.1
2 147.2 25 Aug 2016 06:26AM UTC 0
96.82
Travis Job 147.2
3 147.3 25 Aug 2016 06:27AM UTC 0
96.82
Travis Job 147.3
4 147.4 25 Aug 2016 06:28AM UTC 0
96.82
Travis Job 147.4
Source Files on build 147
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #147
  • Pull Request #54
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc