Class: Cachetastic::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/cachetastic/logger.rb

Constant Summary collapse

LOG_LEVELS =
[:fatal, :error, :warn, :info, :debug]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*loggers) ⇒ Logger

Returns a new instance of Logger.



9
10
11
# File 'lib/cachetastic/logger.rb', line 9

def initialize(*loggers)
  @loggers = [loggers].flatten
end

Instance Attribute Details

#loggersObject

attr_accessor :options attr_accessor :cache_name



7
8
9
# File 'lib/cachetastic/logger.rb', line 7

def loggers
  @loggers
end