1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

More consistent formatting in logger.

This commit is contained in:
Simo Kinnunen 2014-01-24 11:33:57 +09:00
parent 52e1b8094f
commit 8d7cfa57c4

View file

@ -43,10 +43,13 @@ Log.prototype.fatal = function() {
} }
Log.prototype._format = function(priority, args) { Log.prototype._format = function(priority, args) {
return util.format('%s/%s %d [%s] %s', return util.format('%s/%s %d [%s] %s'
priority, this.tag, process.pid, , priority
this.localIdentifier || Log.globalIdentifier, , this.tag
util.format.apply(util, args)) , process.pid
, this.localIdentifier || Log.globalIdentifier
, util.format.apply(util, args)
)
} }
Log.prototype._write = function(out) { Log.prototype._write = function(out) {