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

GoogleCloudPlatform / cloud-errors-nodejs / 158 / 3
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 13 Sep 2016 05:59PM UTC
Files 23
Run time 1s
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

13 Sep 2016 05:50PM UTC coverage: 96.82%. First build
158.3

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

609 of 629 relevant lines covered (96.82%)

34.0 hits per line

Source Files on job 158.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 158
  • Travis Job 158.3
  • c39377c5 on github
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