Created
September 16, 2020 14:55
-
-
Save BetterProgramming/4a1a755c9bffa151513c6008a8d827a8 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
//.en. | |
LOG_LEVEL = "warn" | |
//logger.js | |
const transports = { | |
console: new winston.transports.Console({ level: process.env.LOG_LEVEL}), | |
}; | |
const logger = winston.createLogger({ | |
transports: [ | |
Transports.console, | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment