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

GoogleCloudPlatform / cloud-errors-nodejs / 158
94%

Build:
DEFAULT BRANCH: master
Ran 13 Sep 2016 05:57PM 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
158

Pull #54

travis-ci

web-flow
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 second (if applicable)
after the environmental GCLOUD_ERRORS_LOGLEVEL level variable
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

20 of 20 new or added lines in 2 files covered. (100.0%)

609 of 629 relevant lines covered (96.82%)

136.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 158.1 13 Sep 2016 05:57PM UTC 0
96.82
Travis Job 158.1
2 158.2 13 Sep 2016 05:58PM UTC 0
96.82
Travis Job 158.2
3 158.3 13 Sep 2016 05:59PM UTC 0
96.82
Travis Job 158.3
4 158.4 13 Sep 2016 06:01PM UTC 0
96.82
Travis Job 158.4
Source Files on build 158
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #158
  • 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

© 2026 Coveralls, Inc