From 9f4878d82cadf6806dff6fb285e497a1b2ad721c Mon Sep 17 00:00:00 2001 From: csausdev Date: Sun, 17 Apr 2011 17:46:13 +1000 Subject: [PATCH] Disabling the console.log replacement --- lib/log4js.js | 3 ++- test/logging.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/log4js.js b/lib/log4js.js index 1db5b17..298bd16 100644 --- a/lib/log4js.js +++ b/lib/log4js.js @@ -648,7 +648,8 @@ module.exports = function (fileSystem, standardOutput, configPaths) { //set ourselves up if we can find a default log4js.json configure(findConfiguration()); //replace console.log, etc with log4js versions - replaceConsole(getLogger("console")); + //disabling this (17/04/11 - GJ), as console.log does fancy formatting that this breaks + //replaceConsole(getLogger("console")); } var thismodule = { diff --git a/test/logging.js b/test/logging.js index 42b71a6..7903de5 100644 --- a/test/logging.js +++ b/test/logging.js @@ -530,7 +530,7 @@ vows.describe('log4js').addBatch({ assert.equal(date.toFormattedString(), '2010-01-11 14:31:30.005'); } }, - +/** Disabling the console.log replacement **** 'console' : { topic: function() { return require('../lib/log4js')(); @@ -561,7 +561,7 @@ vows.describe('log4js').addBatch({ assert.equal(logEvent.level.toString(), "TRACE"); } }, - +*/ 'configuration persistence' : { 'should maintain appenders between requires': function () { var logEvent, firstLog4js = require('../lib/log4js')(), secondLog4js;