Last active
March 12, 2018 19:49
-
-
Save thiagomr/5aad648d4e5638021d1bbb1bb98cce74 to your computer and use it in GitHub Desktop.
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
| import winston from 'winston'; | |
| const logger = new (winston.Logger) ({ | |
| 'transports': [new (winston.transports.Console)({ | |
| 'colorize': true, | |
| 'prettyPrint': true, | |
| 'timestamp': () => moment().tz('America/Sao_Paulo').format('YYYY-MM-DD HH:mm:ss'), | |
| })] | |
| }); | |
| export default logger; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment