Module: Philiprehberger::LogFilter::Presets
- Defined in:
- lib/philiprehberger/log_filter/presets.rb
Overview
Factory methods that return pre-configured Filter instances for common log-noise scenarios.
Class Method Summary collapse
-
.assets ⇒ Filter
Filter that drops static-asset request log lines.
-
.bots ⇒ Filter
Filter that drops bot/crawler request log lines.
-
.health_check ⇒ Filter
Filter that drops health-check request log lines.
Class Method Details
.assets ⇒ Filter
Filter that drops static-asset request log lines.
18 19 20 |
# File 'lib/philiprehberger/log_filter/presets.rb', line 18 def self.assets Filter.new.drop(/\.(css|js|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot|map)\b/i) end |