Skip to content

Instantly share code, notes, and snippets.

@dmukhg
Created January 5, 2016 04:16
Show Gist options
  • Save dmukhg/b89c6d2c1771754730a2 to your computer and use it in GitHub Desktop.
Save dmukhg/b89c6d2c1771754730a2 to your computer and use it in GitHub Desktop.
var config = require('config');
var winstonConfig = require('winston-config');
winstonConfig.fromJson(config.get('logging'), function (err, winston) {
// Handle error
var SomeService = require('./SomeService');
var logger = winston.loggers.get('protocol');
logger.info('Started application');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment