Last active
May 24, 2017 20:39
-
-
Save mrister/7f8912e1c13d9d6b0b461176791517ca to your computer and use it in GitHub Desktop.
Create Loggly stream with Bunyan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bunyan = require('bunyan'); | |
const Bunyan2Loggly = require('bunyan-loggly'); | |
const log = bunyan.createLogger({ | |
name: 'logglylog', | |
streams: [ | |
{ | |
type: 'raw', | |
stream: new Bunyan2Loggly({ | |
token: 'YOUR_TOKEN', | |
subdomain: 'YOUR_SUBDOMAIN', | |
json: true | |
}) | |
} | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment