Bug 1153691 - intTestLogging() now adds timestamps and supports param substitution. r=rnewman

This commit is contained in:
Mark Hammond 2015-04-22 09:27:43 +10:00
parent 54ca3f0cd4
commit 60efcc2540

View File

@ -23,11 +23,11 @@ this.initTestLogging = function initTestLogging(level) {
this.errorsLogged += 1;
}
return message.loggerName + "\t" + message.levelDesc + "\t" +
message.message + "\n";
return message.time + "\t" + message.loggerName + "\t" + message.levelDesc + "\t" +
this.formatText(message) + "\n";
}
};
LogStats.prototype.__proto__ = new Log.Formatter();
LogStats.prototype.__proto__ = new Log.BasicFormatter();
let log = Log.repository.rootLogger;
let logStats = new LogStats();