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