Class: Cassandra::Logger
- Inherits:
-
Logger
- Object
- Logger
- Cassandra::Logger
- Defined in:
- lib/cassandra/cassandra_logger.rb
Overview
This class is a logger that may be used by the client to log the driver's actions. It is a subclass of the standard Ruby Logger class, so it is instantiated the same way.
The format of log output is set to include the timestamp, thread-id, log severity, and message. This format may change in newer versions of the driver to account for new/deprecated metadata.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(*args) ⇒ Logger
Returns a new instance of Logger.
75 76 77 78 |
# File 'lib/cassandra/cassandra_logger.rb', line 75 def initialize(*args) super(*args) self.formatter = Formatter.new end |