Updated README example

This commit is contained in:
csausdev 2010-03-29 14:59:26 +11:00
parent 0d100c0ab2
commit 24b22c4afb

View File

@ -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');