Class Cachetastic::Logger
In: lib/cachetastic/logger.rb
Parent: Object

This class handles logging for the caches and their adapters.

Methods

new  

Constants

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

Attributes

loggers  [RW]  attr_accessor :options attr_accessor :cache_name

Public Class methods

[Source]

    # File lib/cachetastic/logger.rb, line 8
 8:   def initialize(loggers)
 9:     @loggers = [loggers].flatten
10:     # self.options = options
11:     # self.cache_name = cache_name
12:     # self.options.each_pair do |n, opts|
13:     #   opts["level"] = (opts["level"] ||= "info").to_sym
14:     # end
15:   end

[Validate]