Class: Cachetastic::Logger
- Inherits:
-
Object
- Object
- Cachetastic::Logger
- Defined in:
- lib/cachetastic/logger.rb
Constant Summary collapse
- LOG_LEVELS =
[:fatal, :error, :warn, :info, :debug]
Instance Attribute Summary collapse
-
#loggers ⇒ Object
attr_accessor :options attr_accessor :cache_name.
Instance Method Summary collapse
-
#initialize(*loggers) ⇒ Logger
constructor
A new instance of Logger.
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
#loggers ⇒ Object
attr_accessor :options attr_accessor :cache_name
7 8 9 |
# File 'lib/cachetastic/logger.rb', line 7 def loggers @loggers end |