mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
More consistent formatting in logger.
This commit is contained in:
parent
52e1b8094f
commit
8d7cfa57c4
1 changed files with 7 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue