]>
git.r.bdr.sh - rbdr/cologne/blob - lib/formatters/simple.js
24f65b37378bbfe1223e24892784342a04227280
4 // Load up dependencies
5 if (typeof require
=== 'function') {
6 var Ne
= require('neon');
9 Module
= global
.Module
;
13 Module(Cobalt
, 'Formatter')({});
15 Cobalt
.Formatter
.Simple
= Module(Cobalt
.Formatter
, 'Simple')({
16 format : function (logObject
, opts
){
19 indent
= Array(logObject
._indentLevel
+ 1).join(' ');
21 return indent
+ logObject
.message
;
25 if (typeof require
=== 'function') {
26 global
.Simple
= Cobalt
.Formatter
.Simple
;
28 global
.Cobalt
.Formatter
.Simple
= Cobalt
.Formatter
.Simple
;
30 }(typeof window
!== 'undefined' ? window : (typeof exports
!== 'undefined' ? exports : self
)));