Disabling the console.log replacement

This commit is contained in:
csausdev 2011-04-17 17:46:13 +10:00
parent d9bfc5db44
commit 9f4878d82c
2 changed files with 4 additions and 3 deletions

View File

@ -648,7 +648,8 @@ module.exports = function (fileSystem, standardOutput, configPaths) {
//set ourselves up if we can find a default log4js.json //set ourselves up if we can find a default log4js.json
configure(findConfiguration()); configure(findConfiguration());
//replace console.log, etc with log4js versions //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 = { var thismodule = {

View File

@ -530,7 +530,7 @@ vows.describe('log4js').addBatch({
assert.equal(date.toFormattedString(), '2010-01-11 14:31:30.005'); assert.equal(date.toFormattedString(), '2010-01-11 14:31:30.005');
} }
}, },
/** Disabling the console.log replacement ****
'console' : { 'console' : {
topic: function() { topic: function() {
return require('../lib/log4js')(); return require('../lib/log4js')();
@ -561,7 +561,7 @@ vows.describe('log4js').addBatch({
assert.equal(logEvent.level.toString(), "TRACE"); assert.equal(logEvent.level.toString(), "TRACE");
} }
}, },
*/
'configuration persistence' : { 'configuration persistence' : {
'should maintain appenders between requires': function () { 'should maintain appenders between requires': function () {
var logEvent, firstLog4js = require('../lib/log4js')(), secondLog4js; var logEvent, firstLog4js = require('../lib/log4js')(), secondLog4js;