-(function (global) {
- var Module;
-
- // Load up dependencies
- if (typeof require === 'function') {
- var Ne = require('neon');
- Module = Ne.Module;
- } else {
- Module = global.Module;
- }
-
- var Cobalt = {};
- Module(Cobalt, 'Formatter')({});
-
- Cobalt.Formatter.Simple = Module(Cobalt.Formatter, 'Simple')({
+Module(Cobalt.Formatter, 'Simple')({
format : function (logObject, opts){
- var indent;
+ var indent, date;
- indent = Array(logObject._indentLevel + 1).join(' ');
+ indent = Array(logObject._indentLevel + 1).join(' ');
- return indent + logObject.message;
- }
- });
+ date = new Date(logObject._timestamp);
- if (typeof require === 'function') {
- global.Simple = Cobalt.Formatter.Simple;
- } else {
- global.Cobalt.Formatter.Simple = Cobalt.Formatter.Simple;
- }
-}(typeof window !== 'undefined' ? window : (typeof exports !== 'undefined' ? exports : self)));
+ return indent + '[' + date.toISOString() + '][' + logObject._levelString + '] ' + logObject._from + ' : ' + logObject.message;
+ }
+});