- message = messageArray.join(' ');
-
- switch (severity){
- case 0:
- case 1:
- case 2:
- case 3:
- this.console.error(message);
- break;
- case 4:
- this.console.warn(message);
- break;
- case 5:
- case 6:
- this.console.info(message);
- break;
- case 7:
- default:
- this.console.log(message);
- break;
- }
- },
-
- format : function (logObject) {
- // Usually what you want to do here is format. Preferably using
- // someone inside Cobalt.Formatter
- if (this.formatter) {
- return this.formatter.format(logObject, this.formatterOpts);
- }
-
- return logObject;
+ switch (severity){
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ this.console.error.apply(this.console, message);
+ break;
+ case 4:
+ this.console.warn.apply(this.console, message);
+ break;
+ case 5:
+ case 6:
+ this.console.info.apply(this.console, message);
+ break;
+ case 7:
+ default:
+ this.console.log.apply(this.console, message);
+ break;