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