@gibme/logger

A simple wrapper around the Winston logger


License
MIT
Install
npm install @gibme/logger@1.0.7

Documentation

Simple Logger built around Winston

Automatically creates a common logging facility for you both to file and console.

If NODE_ENV !== 'production', will also output debug level to the console.

import Logger from '@gibme/logger';

Logger.info('I can log %s %sx faster', 'anything', 2);
Logger.debug('Debug message');
Logger.warn('Warning message');
Logger.error('Some error');

Logger.addLog('/somefile.log', 'crit');