logich-loggly
v0.0.4
Published
logich middleware for loggly.com
Downloads
3
Maintainers
Readme
This is loggly.com middleware plugin for logich
logger.
Install: npm install logich npm install logich-loggly
Usage:
var logich = require("logich");
var loggly = require("logich-loggly");
Your loggly.com settings as you would provide to loggly
package.
var config = {
token: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
subdomain: "XXXXXXXXX",
tags: ["NodeJS"],
json: true
};
Start logging:
var logger = logich()
.use(logich.object)
.use(logich.time)
.use(logich.console)
.use(loggly(config));
// Send log message to STDIN and loggly.com:
logger.log("Hello world!");