tlrg-logger
v3.0.0
Published
tlrg-logger =======================
Downloads
5
Readme
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')