package
Console formatter for the bole logger
npm install bole-consoleGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 2 packages.
15.5 kB
Includes dependencies.
Plugin for the bole logger. Formats and colorizes the JSON object and prints it to the stdout.
var bole = require('bole');
var boleConsole = require('bole-console');
var boleConsoleStream = boleConsole({
timestamp: true,
requestDetails: true
});
bole.output([
{ level: 'info', stream: boleConsoleStream }
]);
var log = bole('my-module');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: