Created
October 14, 2012 11:18
-
-
Save modalsoul/3888287 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
/** | |
* log4js loggging sample | |
* @modal_soul | |
*/ | |
var log4js = require('log4js'); | |
log4js.configure({ | |
appenders: [{ | |
"type": "dateFile", | |
"filename": "logging.log", | |
"pattern": "-yyyy-MM-dd" | |
}] | |
}); | |
var logger = log4js.getLogger('dateFile'); | |
logger.info('This is test.'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment