]>
Commit | Line | Data |
---|---|---|
1 | Module(Cobalt.Formatter, 'Simple')({ | |
2 | format : function (logObject, opts){ | |
3 | var indent, date; | |
4 | ||
5 | indent = Array(logObject._indentLevel + 1).join(' '); | |
6 | ||
7 | date = new Date(logObject._timestamp); | |
8 | ||
9 | return indent + '[' + date.toISOString() + '][' + logObject._levelString + '] ' + logObject._from + ' : ' + logObject.message; | |
10 | } | |
11 | }); |