3.0.0 • Published 6 years ago
bunyan-log v3.0.0
bunyan-log
Simple wrapper around bunyan which sets many common defaults. REQUIRES ECMAScript6 friendly node version
##install
$npm install bunyan-log
##usage
var Logger = require('bunyan-log');
var log = new Logger({name: 'myLogger'});
log.debug('hi, my name is ben.');
constructorvar log = new Logger([options])
See node-bunyan for options that can be set.
- logging to stdout:
options.useStdOut = true;
- not logging to file:
options.useFile = false;
- allowing logging to new log file on cluster.fork'd process:
options.isNewProcess = true
- allow process created with child_process.fork to send to parent:
options.sendToParent = true
- default path for logs is root/logs directory
3.0.0
6 years ago
2.0.12
6 years ago
2.0.11
6 years ago
2.0.10
7 years ago
2.0.9
7 years ago
2.0.8
7 years ago
2.0.7
7 years ago
2.0.6
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
9 years ago
1.0.0
9 years ago