Class: Cequel::Metal::ExceptionLogger
- Defined in:
- lib/cequel/metal/logger.rb
Overview
Logger for queries that resulted in an exception
Instance Attribute Summary
Attributes inherited from Logger
Instance Method Summary collapse
-
#log(label, statement, bind_vars) ⇒ void
Log a CQL statement that resulted in an exception.
Methods inherited from Logger
Constructor Details
This class inherits a constructor from Cequel::Metal::Logger
Instance Method Details
#log(label, statement, bind_vars) ⇒ void
This method returns an undefined value.
Log a CQL statement that resulted in an exception
64 65 66 67 68 |
# File 'lib/cequel/metal/logger.rb', line 64 def log(label, statement, bind_vars) out.add(severity) do sprintf('%s (ERROR) %s', label, sanitize(statement, bind_vars)) end end |