Class: Cinch::LogFilter Abstract
- Inherits:
-
Object
- Object
- Cinch::LogFilter
- Defined in:
- lib/cinch/log_filter.rb
Overview
This class is abstract.
LogFilter describes an interface for filtering log messages before they’re printed.
Instance Method Summary collapse
-
#filter(message, event) ⇒ String?
filter is called for each log message, except for exceptions.
Instance Method Details
#filter(message, event) ⇒ String?
filter is called for each log message, except for exceptions. It returns a new string, which is the one that should be printed, or further filtered by other filters. Returning nil will drop the message.
18 19 |
# File 'lib/cinch/log_filter.rb', line 18 def filter(, event) end |