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
|
//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 = {
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user