Created
May 12, 2017 07:28
-
-
Save mrister/f2d800df8ac2c1c5eccafa135a8136dd to your computer and use it in GitHub Desktop.
Configure Winston transports
This file contains hidden or 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
const winston = require('winston'); | |
winston.loggers.add('development', { | |
console: { | |
level: 'silly', | |
colorize: 'true', | |
label: 'category one' | |
}, | |
file: { | |
filename: './somefile.log', | |
level: 'warn' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment