Sha256: a2b8b8347995da2f5cfc6df168fd544a79ec4a5cbd422ca2571fc591d85bc9b7

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

module RequestLogAnalyzer::FileFormat::Merb

  LINE_DEFINITIONS = {
    
    # ~ Started request handling: Fri Aug 29 11:10:23 +0200 2008
    :started => {
      :header   => true,
      :teaser   => /Started/,
      :regexp   => /Started request handling\:\ (.+)/,
      :captures => [{:timestamp => :timestamp}]
    },
    
    # ~ Params: {"action"=>"create", "controller"=>"session"}
    # ~ Params: {"_method"=>"delete", "authenticity_token"=>"[FILTERED]", "action"=>"d}
    :params => {
      :teaser   => /Params/,
      :regexp   => /Params\:\ \{(.+)\}/,
      :captures => [{:raw_hash => :string}]
    },
    
    # ~ {:dispatch_time=>0.006117, :after_filters_time=>6.1e-05, :before_filters_time=>0.000712, :action_time=>0.005833}
    :completed => {
      :footer   => true,
      :teaser   => /\{:dispatch_time/,
      :regexp   => /\{\:dispatch_time=>(\d+\.\d+(?:e-?\d+)?), (?:\:after_filters_time=>(\d+\.\d+(?:e-?\d+)?), )?(?:\:before_filters_time=>(\d+\.\d+(?:e-?\d+)?), )?\:action_time=>(\d+\.\d+(?:e-?\d+)?)\}/,
      :captures => [ {:dispatch_time => :sec}, {:after_filters_time => :sec}, {:before_filters_time => :sec}, {:action_time => :sec} ]
    }
  }
    
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wvanbergen-request-log-analyzer-0.3.0 lib/request_log_analyzer/file_format/merb.rb
wvanbergen-request-log-analyzer-0.3.2 lib/request_log_analyzer/file_format/merb.rb
wvanbergen-request-log-analyzer-0.3.3 lib/request_log_analyzer/file_format/merb.rb