This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = { | |
debug: function(message, level) { | |
// Default level for logs | |
if (typeof level === 'undefined' || level === 'log') { | |
level = 'info'; | |
} | |
// If we have a console... | |
if (typeof console === 'object' && typeof console.debug === 'function') { | |
// ...and the requested log level exists |
NewerOlder