@gibme/logger
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @gibme/logger

Weekly Downloads

45

Version

1.0.11

License

MIT

Unpacked Size

11.9 kB

Total Files

6

Last publish

Collaborators

  • brandonlehmann