code: function mkLoggerIfNeeded(level) {
      if (console && console[level] && typeof console[level] == "function" && console[level].call) {
          return function() {
              if (console[level].apply) {
                  console[level].apply(console, [].slice.call(arguments));
              } else if (console[level].call) {
                  console[level]([].slice.call(arguments).join(" "));
              }
          }
      } else if (console && console.log) {
          var prefix = level.toUpperCase()+": ";
          return function() {
              console.log(prefix + [].slice.call(arguments).join(" "));
          }
      } else return function(){ /* NOOP Logging IE<=8, FF<=2 */ };
  }
docs: A mini logger abstraction that leverages Chrome's [log|warn|error|debug] levels and falls back to console.log for the others or NOOP when no console exists at all