- Jump To … +
  analyze.coffee autoload.coffee blender.coffee calculate.coffee caman.coffee convert.coffee event.coffee filter.coffee io.coffee layer.coffee logger.coffee module.coffee pixel.coffee plugin.coffee renderer.coffee store.coffee util.coffee blenders.coffee filters.coffee size.coffee blur.coffee camera.coffee compoundBlur.coffee edges.coffee posterize.coffee presets.coffee rotate.coffee stackBlur.coffee threshold.coffee

- # logger.coffee

- ¶

  Simple console logger class that can be toggled on and off based on Caman.DEBUG

      class Caman.Logger
        constructor: ->
          for name in ['log', 'info', 'warn', 'error']
            @[name] = do (name) ->
              (args...) ->
                return if not Caman.DEBUG
                try
                  console[name].apply console, args
                catch e

- ¶

  We're probably using IE9 or earlier

                  console[name] args

          @debug = @log

      Log = new Caman.Logger()