lib/croque.rb in croque-0.2.0 vs lib/croque.rb in croque-0.3.0
- old
+ new
@@ -17,11 +17,11 @@
class Configuration
include ActiveSupport::Configurable
config_accessor :root_path, :log_dir_path, :store_path,
:log_file_matcher, :hour_matcher, :matcher, :severity_matcher,
- :start_matcher, :end_matcher, :lower_time
+ :start_matcher, :end_matcher, :lower_time, :except_path_matcher
end
configure do |config|
config.root_path = Pathname.new(Rails.root || Dir.pwd)
config.log_dir_path = config.root_path.join('log')
@@ -31,9 +31,10 @@
config.severity_matcher = /severity/
config.matcher = /\[#{config.hour_matcher.source}:\d{2}:\d{2}\.\d+ #{config.severity_matcher.source}\]/
config.start_matcher = /\-\- : Started/
config.end_matcher = /\-\- : Completed/
config.lower_time = 1000 # ms
+ config.except_path_matcher = /\/assets\//
end
class << self
def aggregate(date)
Croque::Aggregator.aggregate(date)