]> git.r.bdr.sh - rbdr/cologne/blame - lib/formatters/simple.js
Makes file logger append by default
[rbdr/cologne] / lib / formatters / simple.js
CommitLineData
db6bc3cb 1Module(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});