~ubuntu-branches/ubuntu/wily/ruby-aws-sdk/wily

« back to all changes in this revision

Viewing changes to lib/aws/core/log_formatter.rb

  • Committer: Package Import Robot
  • Author(s): David Suárez
  • Date: 2015-08-11 17:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20150811174339-xpq5x98u1udacu7q
Tags: 1.64.0-1
* debian/control:
  - Update standards version; no changes needed.
  - Add Conflicts: ruby-aws; Distinct implementation for same service.
* debian/patches:
  - Drop 'fix-typo-in-aws-repl-commandline-client-help-page' path;
      applied upstream.
  - Refresh 'use-correct-path-for-bundled-files' patch.
  - Add 'maintain-imports-backwards-compatibility patch'.
* debian/copyright: update years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    # a log message.  When you construct a {LogFormatter}, you provide
23
23
    # a pattern string with substitutions.
24
24
    #
25
 
    #     pattern = '[REQUEST :http_status_code] :service :operation :duration'
 
25
    #     pattern = '[AWS :http_response_status] :service :operation :duration'
26
26
    #     formatter = AWS::Core::LogFormatter.new(pattern)
27
27
    #     formatter.format(response)
28
28
    #     #=> '[AWS 200] EC2 get_bucket 0.0352'
33
33
    # repace this formatter by building your own and then passing it
34
34
    # to {AWS.config}.
35
35
    #
36
 
    #     pattern = '[REQUEST :http_status_code] :service :operation :duration'
 
36
    #     pattern = '[AWS :http_response_status] :service :operation :duration'
37
37
    #     AWS.config(:log_formatter => AWS::Core::LogFormatter.new(pattern)
38
38
    #
39
39
    # ## Canned Formatters