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

share / sharedb / 900
96%
master: 97%

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

push

travis-ci

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

1089 of 1307 branches covered (83.32%)

2302 of 2410 relevant lines covered (95.52%)

401.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 900.1 31 Oct 2018 10:34AM UTC 0
95.52
Travis Job 900.1
2 900.2 31 Oct 2018 10:42AM UTC 0
95.52
Travis Job 900.2
3 900.3 31 Oct 2018 10:41AM UTC 0
95.52
Travis Job 900.3
Source Files on build 900
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #900
  • ca2719a1 on github
  • Prev Build on use-loglevel (#899)
  • Next Build on use-loglevel (#904)
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