npm.io
1.11.0 • Published 11 years ago

moonstick-module-logger

Licence
ISC
Version
1.11.0
Deps
5
Vulns
3
Weekly
0

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
});