function consoleLog(type) {
      var console = $window.console || {},
          logFn = console[type] || console.log || noop;

      return function() {
        var args = [];
        forEach(arguments, function(arg) {
          args.push(formatError(arg));
        });
        // Support: IE 9 only
        // console methods don't inherit from Function.prototype in IE 9 so we can't
        // call `logFn.apply(console, args)` directly.
        return Function.prototype.apply.call(logFn, console, args);
      };
    }
@ngdoc method
@name $sce#isEnabled
@kind function

@return {Boolean} True if SCE is enabled, false otherwise.  If you want to set the value, you
    have to do it at module config time on {@link ng.$sceProvider $sceProvider}.

@description
Returns a boolean indicating if SCE is enabled.