Forked from wordswords/gist:05d6dbd63ba48bbe71955af31cb30c19
Last active
September 27, 2016 18:47
-
-
Save Markavian/510edf1e880b4d91ad2ce9a2bbfce1a2 to your computer and use it in GitHub Desktop.
This file contains 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
function makeLogger() { | |
return new winston.Logger({ | |
level: 'info', | |
transports: [ | |
new (winston.transports.Console)(), | |
new (winston.transports.File)({ filename: 'somefile.log' }) | |
] | |
}); | |
} | |
module.exports = makeLogger; |
This file contains 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
// Require and create a a new logger | |
var logger = require('./logger')(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment