Enabling log rolling breaks with exception #31

Closed
efreeti opened this Issue Oct 27, 2011 · 1 comment

Comments

Projects
None yet
2 participants

efreeti commented Oct 27, 2011

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).

Collaborator

nomiddlename commented Oct 27, 2011

Thanks - I'll test with node 0.5.10 and see if I can reproduce the problem.

On 27 Oct 2011, at 23:01, "efreeti" reply@reply.github.com wrote:

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).

Reply to this email directly or view it on GitHub:
https://github.com/csausdev/log4js-node/issues/31

Sensis. Helping you find, buy and sell.

www.sensis.com.au - www.yellow.com.au - www.whitepages.com.au - www.citysearch.com.au - www.whereis.com.au

Sensis cares for the environment - think before you print.

This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 8653 5000]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment