gowento-logger
v6.1.0
Published
Gowento Logger
Downloads
100
Readme
gowento-logger
Gowento Logger
Install
# Using npm
npm install gowento-logger
# Using yarn
yarn add gowento-logger
Usage
import logger from 'gowento-logger';
logger.info('message', { data: [{ foo: 1 }, { bar: 2 }] });
logger.warn('warn message');
logger.error(new Error('Foo'));
logger.debug('should be hidden');
const logger2 = logger.clone({
level: 'debug',
color: false,
readable: false,
prefix: 'foo.',
});
logger2.debug('should be visible');
logger2.warn('no color', { foo: 'bar' });
License
MIT © Gowento