Skip to content

v1.0.12

Choose a tag to compare

@brandonlehmann brandonlehmann released this 27 Dec 18:55
· 13 commits to master since this release
e85e39d

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