module Sequel::CallerLogging

  1. lib/sequel/extensions/caller_logging.rb

Constants

RUBY_STDLIB = RbConfig::CONFIG["rubylibdir"]  
SEQUEL_LIB_PATH = (File.expand_path('../../..', __FILE__) + '/').freeze  

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)

Include caller information when logging query.

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