lib/vmdb/loggers.rb
# To be used as Excon's request logger, the logger must respond to
#   #instrument as in ActiveSupport::Notifications.
#   Implementation derived from Excon::StandardInstrumentor
To be used as Excon's request logger, the logger must respond to
instrument as in ActiveSupport::Notifications.
Implementation derived from Excon::StandardInstrumentor
To be used as Excon ' s request logger the logger must respond to instrument as in ActiveSupport :: Notifications . Implementation derived from Excon :: StandardInstrumentor
def instrument(name, params = {})
        method, message =
          case name
          when "excon.request" then  [:debug, message_for_excon_request(params)]
          when "excon.response" then [:debug, message_for_excon_response(params)]
          when "excon.error" then    [:debug, message_for_excon_error(params)]
          else                   [:debug, message_for_other(params)]
          end
        send(method, "#{name.ljust(14)}  #{message}")
        yield if block_given?
      end
def instrument ( name , params = { } ) method , message = case name when "excon.request" then [ :debug , message_for_excon_request ( params ) ] when "excon.response" then [ :debug , message_for_excon_response ( params ) ] when "excon.error" then [ :debug , message_for_excon_error ( params ) ] else [ :debug , message_for_other ( params ) ] end send ( method , "#{name.ljust(14)}  #{message}" ) yield if block_given? end
To be used as Excon's request logger, the logger must respond to
instrument as in ActiveSupport::Notifications.
To be used as Excon ' s request logger the logger must respond to instrument as in ActiveSupport :: Notifications .
name
params