lib/verifly/dependent_callbacks/invoker.rb
def log!(severity, message, callback: nil)
        DependentCallbacks.logger.public_send(severity, "Verifly::DependentCallbacks::Invoker") do
          if callback
            <<~TXT.squish if callback
              #{message} callback #{callback.name || "(anonymous)"}
                         in #{callback.action.source_location(binding_)&.join(':')}
            TXT
          else
            message
          end
        end
      end
# Logger interface to decorate messages. Uses DependentCallbacks.logger
# @param severity [:debug, :info, :warn, :error, :fatal] severity level
# @param message [String] message
# @param callback [Callback?] callback to get extra context
Logger interface to decorate messages.
Logger interface to decorate messages .
def log!(severity, message, callback: nil)
        DependentCallbacks.logger.public_send(severity, "Verifly::DependentCallbacks::Invoker") do
          if callback
            <<~TXT.squish if callback
              #{message} callback #{callback.name || "(anonymous)"}
                         in #{callback.action.source_location(binding_)&.join(':')}
            TXT
          else
            message
          end
        end
      end
def log! ( severity , message , callback : nil ) DependentCallbacks . logger . public_send ( severity , "Verifly::DependentCallbacks::Invoker" ) do if callback <<~TXT . squish if callback #{ message }  callback  #{ callback . name || "(anonymous)" } 
                         in  #{ callback . action . source_location ( binding_ ) &. join ( ':' ) } TXT else message end end end
Logger interface to decorate messages.
Logger interface to decorate messages .
severity
None
message
None
callback
callback to get extra context
callback to get extra context