This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

bunyan-log
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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.');

constructor
var 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i bunyan-log

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

34.8 kB

Total Files

12

Last publish

Collaborators

  • weagle08