Created
May 6, 2013 22:21
-
-
Save kenperkins/5528711 to your computer and use it in GitHub Desktop.
Winston Regression between 0.6.2 and 0.7.1
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
var winston = require("winston"); | |
var logger = new winston.Logger({ | |
levels: { | |
debug: 0, | |
info: 1, | |
warn: 2, | |
error: 3 | |
}, | |
transports: [ | |
new winston.transports.Console({ | |
level: 'debug', | |
colorize: true | |
}) | |
] | |
}); | |
console.log('Winston Version: ' + winston.version); | |
console.log('\nProxy Methods\n'); | |
logger.info("Hello world"); | |
logger.warn("Hello world", { winston: { | |
version: winston.version | |
}}); | |
console.log('\nDirect Access Methods\n') | |
logger.log('info', "Hello world"); | |
logger.log('warn', "Hello world", { version: winston.version }); |
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
Winston Version: 0.6.2 | |
Proxy Methods | |
info: Hello world | |
warn: Hello world version=0.6.2 | |
Direct Access Methods | |
info: Hello world | |
warn: Hello world version=0.6.2 |
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
Winston Version: 0.7.1 | |
Proxy Methods | |
info: Hello world | |
warn: Hello world | |
Direct Access Methods | |
info: Hello world | |
warn: Hello world version=0.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment