@recipher/log

1.0.3 • Public • Published

@recipher/log

Log helper with sane defaults.

Usage

Logs to the console by default.

Use configuration to log to file:

{
  "LOGGING": "file"
}

Or to Papertrail:

{
  "LOGGING": "papertrail"
, "PAPERTRAIL": {
    "HOST": "..."
  , "PORT": 1234
  }
}

To write to the log:

var log = require('@recipher/log');

log.info('Information');
log.warn('Warning');
log.error('Error');
log.debug('Debug');

Readme

Keywords

none

Package Sidebar

Install

npm i @recipher/log

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • recipher