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