Disabling the console.log replacement
This commit is contained in:
parent
d9bfc5db44
commit
9f4878d82c
@ -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 = {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user