Sha256: 3bb410d2b8ae6137ba893ed6f703898f746c5d3fcff938148adcdada059ba9fb

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

module ResqueMods 
  class << self

    def logger 
      @logger ||= default_logger
    end 

    def logger=(logger)
      @logger = logger 
    end 

    def default_logger 
      logger = Logger.new(STDOUT)
      logger.level = Logger::WARN
      logger
    end 
  end 
end 

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
resque-mods-1.0.4 lib/resque-mods/logger.rb
resque-mods-1.0.3 lib/resque-mods/logger.rb
resque-mods-1.0.2 lib/resque-mods/logger.rb
resque-mods-1.0.1 lib/resque-mods/logger.rb
resque-mods-1.0.0 lib/resque-mods/logger.rb