3.0.0 • Published 7 years ago

tlrg-logger v3.0.0

Weekly downloads
8
License
ISC
Repository
-
Last release
7 years ago

tlrg-logger

Basic usage

var logger = require('tlrg-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('tlrg-logger')({
  console: false,
  loggerLogstash: false,
  appName: 'applicationName'
});

(Setting the appName configures the logstash 'type' used e.g. the above will use 'applicationName_errors' and 'applicationName_logging')