module Sequel::CallerLogging
Constants
- INTERNAL
- RUBY_STDLIB
- SEQUEL_LIB_PATH
Attributes
caller_logging_formatter[RW]
A callable to format the external caller
caller_logging_ignore[RW]
A regexp of caller lines to ignore, in addition to internal Sequel
and Ruby code.
Public Instance Methods
log_connection_yield(sql, conn, args=nil)
click to toggle source
Include caller information when logging query.
Calls superclass method
# File lib/sequel/extensions/caller_logging.rb 49 def log_connection_yield(sql, conn, args=nil) 50 if !@loggers.empty? && (external_caller = external_caller_for_log) 51 sql = "#{external_caller} #{sql}" 52 end 53 super 54 end