]> git.r.bdr.sh - rbdr/cologne/blame_incremental - lib/formatters/simple.js
Merge pull request #1 from sgarza/master
[rbdr/cologne] / lib / formatters / simple.js
... / ...
CommitLineData
1Module(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});