bole-console
Console formatter for the bole logger
Plugin for the bole logger. Formats and colorizes the JSON object and prints it to the stdout.
var bole = ;var boleConsole = ; var boleConsoleStream = ; bole; var log = ;
Some outputs:
-
log.warn ({ foo: 'bar' }, 'baz')
-
log.error(new Error('foo'), 'bar')
-
log.info(request, 'foo')
module([options]) : Writable
Returns a new Writable stream instance.
Options:
- timestamp - Boolean
Includes the ISO string of the current time. Default false. - hostname - Boolean
Includes the hostname of the current user. Default false. - pid - Boolean
Includes the pid of the current process. Default false. - indent - Number
Number of spaces for each level when objects are formatted. Default 2. - colors - Boolean
Prints the message with colors. Default true. - requestDetails - Boolean
Includes some details about the request such as headers and remote socket. Default false.