Class: Cinch::LogFilter Abstract
- Defined in:
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) ⇒?
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.
# File 'lib/cinch/log_filter.rb', line 18 def filter(, event) end