csausdev/log4js-node — pull request #53 by vincentcr (2012-01-05 13:52:49+00:00)
Title: make restoreConsole work

fix bug #52, by making the console appender not depend on console._preLog4js_log, which restoreConsole removes.

this relies on the fact that the console appender module is require'd by log4js, and so executes before it.

ps: it would be nice if console.log was not replaced by default: it breaks other packages that rely on specific output formatting, eg unit-test frameworks.