Skip to content

Instantly share code, notes, and snippets.

View romant's full-sized avatar

Roman Tarnavski romant

View GitHub Profile
@romant
romant / Logger.js
Last active August 29, 2015 14:18 — forked from santhoshtr/Logger.js
var winston = require('winston'),
fs = require('fs'),
logDir = 'log', // Or read from a configuration
env = process.env.NODE_ENV || 'development',
logger;
var Logentries = require('winston-logentries');
winston.setLevels(winston.config.npm.levels);
winston.addColors(winston.config.npm.colors);