def log_text(path, params, filter, host = nil, exception = nil)
      text = "#{path} #{filter(params, filter).inspect}"
      text = "[#{host}#{text}]" if host
      text << " | #{self.class.exception_text(exception)}" if exception
      text
    end
def log_text(path, params, filter, host = nil, exception = nil)
      text = "#{path} #{filter(params, filter).inspect}"
      text = "[#{host}#{text}]" if host
      text << " | #{self.class.exception_text(exception)}" if exception
      text
    end
Generate log text describing request and failure if any

 @param [String] path in URI for desired resource
 @param [Hash] params for HTTP request
 @param [Array, NilClass] filter augmentation to base filter list
 @param [String] host server URL where request was attempted if known
 @param [Exception, String, NilClass] exception or failure message that should be logged

 @return [String] Log text