Method: Aws::Log::Formatter.short

Defined in:
lib/aws-sdk-core/log/formatter.rb

.short(options = {}) ⇒ Formatter

The short log format. Similar to default, but it does not inspect the request params or report on retries.

Examples:

A sample of the short format


[ClientClass 200 0.494532] list_buckets

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :max_string_size (Integer) — default: 1000

    When summarizing request parameters, strings longer than this value will be truncated.

  • :filter (Array<Symbol>)

    A list of parameter names that should be filtered when logging :request_params.

    Formatter.new(pattern, filter: [:password])
    

    The default list of filtered parameters is documented on the ParamFilter class.

  • :filter_sensitive_params (Boolean) — default: true

    Set to false to disable the sensitive parameter filtering when logging :request_params.

Returns:



232
233
234
235
236
237
238
239
240
# File 'lib/aws-sdk-core/log/formatter.rb', line 232

def short(options = {})
  pattern = []
  pattern << "[:client_class"
  pattern << ":http_response_status_code"
  pattern << ":time]"
  pattern << ":operation"
  pattern << ":error_class"
  Formatter.new(pattern.join(' ') + "\n", options)
end