X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/db6bc3cb0117030b2d31d55850d91f58248a8e81..54a5290bbcae03d129dd21401a4dae98d0aef775:/lib/formatters/simple.js diff --git a/lib/formatters/simple.js b/lib/formatters/simple.js index 6d2ad7d..9eb6bbe 100644 --- a/lib/formatters/simple.js +++ b/lib/formatters/simple.js @@ -1,9 +1,11 @@ Module(Cobalt.Formatter, 'Simple')({ format : function (logObject, opts){ - var indent; + var indent, date; indent = Array(logObject._indentLevel + 1).join(' '); - return indent + logObject.message; + date = new Date(logObject._timestamp); + + return indent + '[' + date.toISOString() + '][' + logObject._levelString + '] ' + logObject._from + ' : ' + logObject.message; } });