mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:53:23 +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) {
|
||||
return util.format('%s/%s %d [%s] %s',
|
||||
priority, this.tag, process.pid,
|
||||
this.localIdentifier || Log.globalIdentifier,
|
||||
util.format.apply(util, args))
|
||||
return util.format('%s/%s %d [%s] %s'
|
||||
, priority
|
||||
, this.tag
|
||||
, process.pid
|
||||
, this.localIdentifier || Log.globalIdentifier
|
||||
, util.format.apply(util, args)
|
||||
)
|
||||
}
|
||||
|
||||
Log.prototype._write = function(out) {
|
||||
|
||||
Reference in New Issue
Block a user