Module: Ciql::Client::Log

Included in:
Binary, Thrift
Defined in:
lib/ciql/client/log.rb

Constant Summary collapse

DEFAULT_LOG_FORMAT =
'CQL %{query} [%{consistency}] (%<duration>.3fms) '.freeze

Instance Method Summary collapse

Instance Method Details

#log(message) ⇒ Object



5
6
7
8
# File 'lib/ciql/client/log.rb', line 5

def log(message)
  return unless Ciql.logger.debug?
  Ciql.logger.debug (@log_format or DEFAULT_LOG_FORMAT) % message
end