mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:26 +02:00
More consistent formatting in logger.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user