get started
Instanciate a logger
- We are using default values in the example below:
const bunyan = ; let log = bunyan; log;log;
- Bunyan will have stdout stream only in the example below:
const bunyan = ; let log = bunyan; log;log;
Inheritence
Bunyan has a concept of a child logger to specialize a logger for a sub-component of your application, i.e. to create a new logger with additional bound fields that will be included in its log records. A child logger is created with log.child(...)
.
const bunyan = ; let log = bunyan; { thislog = optionslog; thislog}Wuzzleprototype { thislog} log;var wuzzle = log: log;wuzzle;log;