chorizo

0.3.0 • Public • Published

Chorizo

Chorizo is an opiniorated contextual logger

Usage

const logger = require('chorizo').for('test-example');

logger.fatal('An unkown exception ocurred.');
logger.error('Something controlled happened.');
logger.warn('This was unexpected.');
logger.info('Everything ok. Just reporting.');
logger.debug('Useful when everything is on fire');

info, warn and debug outputs to stdout. fatal and error accepts a string or error object and outputs to stderr.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    1
    • latest

Version History

Package Sidebar

Install

npm i chorizo

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

4.77 kB

Total Files

6

Last publish

Collaborators

  • fcanela