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

Springworks / node-logger-factory / 852
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: add-stdout-logger-creation
DEFAULT BRANCH: master
Ran 27 Jan 2017 09:29AM UTC
Jobs 3
Files 7
Run time 18s
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
852

push

travis-ci

sommestad
feat(logging): allow creation of sampled logger

Creates a `child()` logger that only logs a "percentage" of the log messages.

* `sample_rate` is a value between 0 - 1 (0 = 0%, 1 = 100%).

```javascript
const sampled_logger = logger.sampledLogger({ sample_rate: 0.5 });
logger.info('50% chance the log will get this message');

```

96 of 97 relevant lines covered (98.97%)

18.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 852.1 27 Jan 2017 09:30AM UTC 0
98.97
Travis Job 852.1
2 852.2 27 Jan 2017 09:29AM UTC 0
98.97
Travis Job 852.2
3 852.3 27 Jan 2017 09:29AM UTC 0
98.97
Travis Job 852.3
Source Files on build 852
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #852
  • e21fef1a on github
  • Prev Build on logging/sample-rate (#850)
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