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

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

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

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.09 hits per line

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