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

Springworks / node-logger-factory / 847 / 1
99%
master: 99%

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

27 Jan 2017 09:11AM UTC coverage: 98.969%. Remained the same
847.1

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

6.46 hits per line

Source Files on job 847.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 847
  • Travis Job 847.1
  • 6fba06ef on github
  • Prev Job for on logging/sample-rate (#845.1)
  • Next Job for on logging/sample-rate (#850.1)
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