Sha256: 7f272d2a0b3af285b788cab42a93fc6d289ea530d83de8198144148d36d5a1d1
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
module MerbAnalyzer class LogParser < Base::LogParser LOG_LINES = { # ~ Started request handling: Fri Aug 29 11:10:23 +0200 2008 :started => { :teaser => /Started/, :regexp => /Started request handling\:\ (.+)/, :params => [{:timestamp => :timestamp}] }, # ~ Params: {"action"=>"create", "controller"=>"session"} # ~ Params: {"_method"=>"delete", "authenticity_token"=>"[FILTERED]", "action"=>"d} :params => { :teaser => /Params/, :regexp => /Params\:\ \{(.+)\}/, :params => [{:raw_hash => :string}] }, # ~ {:dispatch_time=>0.006117, :after_filters_time=>6.1e-05, :before_filters_time=>0.000712, :action_time=>0.005833} :completed => { :teaser => /\{:dispatch_time/, :regexp => /\{\:dispatch_time=>(.+), (?:\:after_filters_time=>(.+), )?(?:\:before_filters_time=>(.+), )?\:action_time=>(.+)\}/, :params => [ {:dispatch_time => :sec}, {:after_filters_time => :sec}, {:before_filters_time => :sec}, {:action_time => :sec} ] } } end end
Version data entries
3 entries across 3 versions & 1 rubygems