Skip to content

v20.0.1

Choose a tag to compare

@brandonlehmann brandonlehmann released this 08 Dec 15:55
· 7 commits to master since this release
0c94e7c

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