Module: DataObjects::Logging
- Included in:
- Connection
- Defined in:
- lib/data_objects/logger.rb
Instance Method Summary collapse
Instance Method Details
#log(message) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/data_objects/logger.rb', line 7 def log() logger = driver_namespace.logger if logger.level <= DataObjects::Logger::LEVELS[:debug] = "(%.6f) %s" % [.duration / 1000000.0, .query] logger.debug end end |