csausdev/log4js-node — Issue #31: Enabling log rolling breaks with exception
Author: efreeti
Created: 2011-10-27 12:00:57+00:00
State: open

I installed log4js:

ryppi install log4js

I've created my custom config:

log4js.json:

{
"appenders": [
{
"type": "console",
"layout": {
"type": "basic"
}
},
{
"type": "file",
"filename": "log_file.log",
"maxLogSize": 1024,
"backups": 3,
"pollInterval": 15
}
]
}

My node version:

node -v
v0.5.10

When I run application that does:

log4js.configure(__dirname + '/log4js.json', {
"reloadSecs": 10
});

It gives me:

Error: Problem reading log4js config ... . Error was "use fs.watch api instead".

In some earlier version of node was giving something about 'undefined is not a function' within fs.watchFile.

I run Node on Window 7 (both Cygwin built and windows binary give same error).