bunyan-logsene

0.0.3 • Public • Published

bunyan-logsene

A Bunyan stream for saving logs into Logsene.

Install

The project is not yet in the npm repository. For now you will need to do:

npm install 6riversystems/bunyan-logsene

Example

var bunyan = require('bunyan');
var Logsene = require('bunyan-logsene');

var logseneStream = new Logsene({
    token: 'da607594-3883-4f5c-9b3a-97b9703a5db2'
});

var logger = bunyan.createLogger({
  name: "My Application",
  streams: [
    { stream: process.stdout },
    { stream: logseneStream,
      type: 'raw'
    }
  ]
});

logger.info('Starting application on port %d', app.get('port'));

NOTE: You must use the raw stream type.

Based On

The following projects were used to get this working:

Dependencies (1)

Dev Dependencies (9)

Package Sidebar

Install

npm i bunyan-logsene

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • 6river-machine