module Sequel::CallerLogging

  1. lib/sequel/extensions/caller_logging.rb


SEQUEL_LIB_PATH = (File.expand_path('../../..', __FILE__) + '/').freeze  


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)

Include caller information when logging query.

[show source]
   # File lib/sequel/extensions/caller_logging.rb
47 def log_connection_yield(sql, conn, args=nil)
48   if !@loggers.empty? && (external_caller = external_caller_for_log)
49     sql = "#{external_caller} #{sql}"
50   end
51   super
52 end