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

GoogleCloudPlatform / cloud-errors-nodejs / 142
94%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2016 03:54AM UTC
Jobs 4
Files 22
Run time 3min
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
142

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 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

600 of 616 relevant lines covered (97.4%)

146.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 142.1 25 Aug 2016 03:54AM UTC 0
97.4
Travis Job 142.1
2 142.2 25 Aug 2016 03:55AM UTC 0
97.4
Travis Job 142.2
3 142.3 25 Aug 2016 03:56AM UTC 0
97.4
Travis Job 142.3
4 142.4 25 Aug 2016 03:57AM UTC 0
97.4
Travis Job 142.4
Source Files on build 142
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #142
  • 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