1.0.1 • Published 9 years ago
locum v1.0.1
Locum
Locum is a 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('locum');
log.info('Information');
log.warn('Warning');
log.error('Error');
log.debug('Debug');