0.1.1 • Published 9 years ago
whiner v0.1.1
whiner
This is a small wrapper around bole and systemd-journald.
It logs everything to journald by default, but supports streaming JSON logs to
other sources, using .output inherited from bole.
Usage
const log = require('whiner')(module);
log.error(error);
log.debug(message, fields);or
const log = require('whiner')('label');
log.error(error);
log.debug(message, info);Log levels
emerg—emergin journald,errorin bole,alert—alertin journald,errorin bole,crit—critin journald,errorin bole,error—errin journald,errorin bole,warn—warningin journald,warnin bole,notice—noticein journald,infoin bole,info—infoin journald,infoin bole,debug—debugin journald,debugin bole.
Notice: emerg triggers a broadcast message with journald, use it wisely.
License
MIT.