Last active
May 21, 2017 20:16
-
-
Save mrister/3a039f3bec4965ec83549dbb10e44642 to your computer and use it in GitHub Desktop.
Loggly winston add a production logger
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 winston = require('winston'); | |
require('winston-loggly-bulk'); | |
winston.loggers.add('production', { | |
Loggly: { | |
token: 'YOUR_TOKEN', | |
subdomain: 'YOUR_SUBDOMAIN' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment