Rewrote file appender, fixing issue #16 and issue #31

This commit is contained in:
Gareth Jones
2011-11-21 15:03:51 +11:00
parent 40c5f5ee70
commit 7d50c45801
3 changed files with 77 additions and 98 deletions

View File

@@ -3,17 +3,16 @@ var log4js = require('./lib/log4js')
, i = 0;
log4js.configure({
"appenders": [
{
type: "console"
, category: "console"
},
{
"type": "file",
"filename": "tmp-test.log",
"maxLogSize": 1024,
"backups": 3,
"pollInterval": 0.1,
"category": "test"
},
{
type: "console"
, category: "console"
}
]
});
@@ -23,6 +22,6 @@ function doTheLogging(x) {
log.info("Logging something %d", x);
}
for ( ; i < 100000; i++) {
for ( ; i < 5000; i++) {
doTheLogging(i);
}