reliable-logger
v1.0.11
Published
logger for reliable
Downloads
27
Readme
reliable-logger
logger for reliable
Installment
$ npm i reliable-logger --save
Usage
// simple
var logger = require('reliable-logger');
logger.info('foo');
logger.warn('bar');
logger.debug('foo');
logger.error('bar');
// options
// this.debugMode = options.debugMode || _.includes(process.argv, '--verbose');
// this.closeFile = options.closeFile;
// this.logFileDir = options.logFileDir || defaultDir;
// middleware
var logger = require('reliable-logger');
app.use(logger.middleware(options));
// custom
var logger = require('reliable-logger').Logger(options);