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:
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) {
|
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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue