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

share / sharedb / 901
96%
master: 97%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6
DEFAULT BRANCH: master
Ran 31 Oct 2018 10:40AM UTC
Jobs 3
Files 24
Run time 43s
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
901

Pull #252

travis-ci

web-flow
Use loglevel instead of console

The [`loglevel`][1] package is a drop-in replacement for `console`,
which lets us set the level of logging we wish to see.

This is particularly useful if we want to silence noisy logs (eg in
tests where we deliberately cause failures).

This change notably removes the `debug` flag from `Connection`.
Logging should be controlled through the provided interface (see below).

## Backend

The log level is controlled on the backend through the `Backend`
constructor. For example, to enable only errors:

```js
const Backend = require('sharedb');

const share = new Backend({
  logLevel: 'error',
});
```

## Client

The client-side log level can be set through a static method exposed on
the `Client`:

```js
const Client = require('sharedb/lib/client');

Client.setLogLevel('error');
```

[1]: https://github.com/pimterry/loglevel
Pull Request #252: Use loglevel instead of console

1089 of 1307 branches covered (83.32%)

17 of 17 new or added lines in 5 files covered. (100.0%)

2302 of 2410 relevant lines covered (95.52%)

401.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 901.1 31 Oct 2018 10:40AM UTC 0
95.52
Travis Job 901.1
2 901.2 31 Oct 2018 10:41AM UTC 0
95.52
Travis Job 901.2
3 901.3 31 Oct 2018 10:40AM UTC 0
95.52
Travis Job 901.3
Source Files on build 901
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #901
  • Pull Request #252
  • PR Base - master (#894)
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