From 8d7cfa57c4ca46c0fa5b679a4e45e43bd463a1de Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Fri, 24 Jan 2014 11:33:57 +0900 Subject: [PATCH] More consistent formatting in logger. --- lib/util/logger.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/util/logger.js b/lib/util/logger.js index 988d8165..2a6ad7a5 100644 --- a/lib/util/logger.js +++ b/lib/util/logger.js @@ -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) {