Skip to content

fcanela/chorizo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chorizo

Chorizo is an opinionated 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.

About

Opinionated contextual Node.js logger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published