simple stream wrapper around node-loggly
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
index.js
package.json

README.md

loggly-stream

Simple stream interface to write to loggly using node-loggly.

Value in this is for piping json to it

Install

npm install loggly-stream

Example usage with bunyan:

var bunyan = require('bunyan');
var LogglyStream = require('loggly-stream');

var log = bunyan.createLogger({
  name: 'my_app',
  streams: [{
    type: 'raw',
    level: 'debug',
    stream: new LogglyStream({
      token: '...',
      subdomain: '...',
      auth: { user: '...',  password: '...' },
      host: 'logs.loggly.com',
      tags: ['global-tag']
    })
  }]
});

log.info('hello world');

License

MIT