off-logger
v0.1.1
Published
Logger with winston pointing to logstash stream. For Huballin.
Downloads
3
Maintainers
Readme
off-logger
Logger library to point your logs to an stream by tcp-port direction. Use it with logstash, fluentd, nagios, many others or your own stream captor.
Install
Easy peasy :)
npm install off-logger
Maybe you'll need a sudo Maybe you want a --save flag [jiji]
Init on your app starting point
var offlogger = require('off-logger');
GLOBAL.log = offlogger.init('off-tryLogger', 4242);
Use it anywhere
Note the fantabulous object log
. You can log at any place of your app.
log.info('Awesome!! So simple!');