X-Git-Url: https://git.r.bdr.sh/rbdr/cologne/blobdiff_plain/db6bc3cb0117030b2d31d55850d91f58248a8e81..05e198f7f785ddf5508b186f1afa21f3dd623941:/lib/formatters/simple.js?ds=sidebyside 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; } });