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

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

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

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

19.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 845.1 27 Jan 2017 09:10AM UTC 0
98.97
Travis Job 845.1
2 845.2 27 Jan 2017 09:10AM UTC 0
98.97
Travis Job 845.2
3 845.3 27 Jan 2017 09:10AM UTC 0
98.97
Travis Job 845.3
Source Files on build 845
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #845
  • 8aaa3943 on github
  • Next Build on logging/sample-rate (#847)
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