Commits

Magnus Hoff committed 0cb5eeb

Use default console color for info messages instead of white/gray

Comments (0)

Files changed (1)

 TaggedConsoleTarget.prototype.log = function (level, msg, meta, callback) {
 	var spec = {
 		'info': {
-			color: "white",
 		},
 		'warn': {
 			color: "yellow"
 		this.target.write(moment(timestamp).format('HH:mm:ss.SSS YYYY-MM-DD dddd').grey + '\n');
 	}
 
-	this.target.write(moment(timestamp).format('HH:mm:ss.SSS').grey + (' [' + tags.join(', ') + '] ').green + msg[color] + '\n');
+	var coloredMessage = msg;
+	if (color) coloredMessage = coloredMessage[color];
+	this.target.write(moment(timestamp).format('HH:mm:ss.SSS').grey + (' [' + tags.join(', ') + '] ').green + coloredMessage + '\n');
 	callback(null, true);
 };