moonstick-module-logger
v1.11.0
Published
moonstick-module-logger =======================
Downloads
7
Readme
moonstick-module-logger
Basic usage
var logger = require('logger')();
logger.error('error title', {
any: 'payload you see fit'
}
Available commands
logger.verbose()
logger.info()
logger.warn()
logger.error()
logging options
By default the logger will log to logstash and the console, these can be configured thus
var logger = require('logger')({
console: false,
loggerLogstash: false
});