Skip to content

Instantly share code, notes, and snippets.

@mrister
Last active May 21, 2017 20:16
Show Gist options
  • Save mrister/3a039f3bec4965ec83549dbb10e44642 to your computer and use it in GitHub Desktop.
Save mrister/3a039f3bec4965ec83549dbb10e44642 to your computer and use it in GitHub Desktop.
Loggly winston add a production logger
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