]> git.r.bdr.sh - rbdr/cologne/blobdiff - lib/loggers/console.js
Adds placeholders for extended console API
[rbdr/cologne] / lib / loggers / console.js
index e8f4d86f4cac8c45c7709b87dba3b81aef50eed8..c8e3036bc8497ca44d8a5abaf592bdbe348b4c22 100644 (file)
         for (i = 0; i < arguments.length; i++) {
           // We're not formatting objects for now.
 
-          if (typeof arguments[i].message === 'object') {
-            message.push(arguments[i].message);
-          } else {
-            message.push(this.format(arguments[i]));
-          }
-          if (!severity) {
-            severity = arguments[i]._level
+          if (!arguments[i].__skipConsole && !arguments[i].message.__skipConsole) {
+            if (typeof arguments[i].message === 'object') {
+              message.push(arguments[i].message);
+            } else {
+              message.push(this.format(arguments[i]));
+            }
+            if (!severity) {
+              severity = arguments[i]._level
+            }
           }
         }