class Cachetastic::Logger
This class handles logging for the caches and their adapters. This class exists simply to supply the ability to write to multiple loggers simultaneously from a single call. It also creates a standardized message to write to those loggers.
It is important that any logger type of class you decide to use reponds to the following methods:
fatal(message) error(message) warn(message) info(message) debug(message)
Attributes
loggers[RW]
An Array
of 'real' loggers to write to.
Public Class Methods
new(*loggers)
click to toggle source
The initialize
method takes an Array
of your favorite logger style classes to write to.
# File lib/cachetastic/logger.rb, line 21 def initialize(*loggers) @loggers = [loggers].flatten end