Updated README example
This commit is contained in:
parent
0d100c0ab2
commit
24b22c4afb
@ -13,8 +13,8 @@ Run the tests with `node tests.js`. They use the awesome [jspec](http://visionme
|
||||
See example.js:
|
||||
|
||||
var log4js = require('log4js-node');
|
||||
log4js.addAppender(consoleAppender());
|
||||
log4js.addAppender(fileAppender('logs/cheese.log'), 'cheese');
|
||||
log4js.addAppender(log4js.consoleAppender());
|
||||
log4js.addAppender(log4js.fileAppender('logs/cheese.log'), 'cheese');
|
||||
|
||||
var logger = log4js.getLogger('cheese');
|
||||
logger.setLevel('ERROR');
|
||||
|
Loading…
Reference in New Issue
Block a user