1.0.0 • Published 7 years ago

logem v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

logem

Opinionated logger based on top of winston with Papertrail integration.

Demo

Terminal gif

How to use

var logem = require('logem');

logem.debug({ objects: [ 'allowed' ] });
logem.info('An informational message');
logem.warn('⚠️  Warning !!');
logem.error('ERROR: blah');

Environment variables

The package uses environment variables instead of configurations in order to be provide the ability to change logging behavior without changing the code.

ENVDefaultDesc
LOG_LEVELinfoseverity of logging needed
LOG_SERVICE_HOSTHost of Papertrail service
LOG_SERVICE_PORTPort of Papertrail service

How to install

npm install logem

Built by: Codebrahma