mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Rename log.prefix to log.globalPrefix.
This commit is contained in:
@@ -39,21 +39,22 @@ Log.prototype.fatal = function() {
|
||||
|
||||
Log.prototype._format = function(priority, args) {
|
||||
return util.format('%s %s/%s %d %s\n',
|
||||
Log.prefix, priority, this.tag, process.pid, util.format.apply(util, args))
|
||||
Log.globalPrefix, priority, this.tag, process.pid,
|
||||
util.format.apply(util, args))
|
||||
}
|
||||
|
||||
Log.prototype._write = function(out) {
|
||||
this.stream.write(out)
|
||||
}
|
||||
|
||||
Log.prefix = '*'
|
||||
Log.globalPrefix = '*'
|
||||
|
||||
Log.createLogger = function(tag) {
|
||||
return new Log(tag)
|
||||
}
|
||||
|
||||
Log.setPrefix = function(prefix) {
|
||||
Log.prefix = prefix
|
||||
Log.setGlobalPrefix = function(prefix) {
|
||||
Log.globalPrefix = prefix
|
||||
}
|
||||
|
||||
exports = module.exports = Log
|
||||
|
||||
Reference in New Issue
Block a user