ILogFilter is the interface that must be implemented by log filters.
A log filter preprocesses the logged messages before they are handled by a log route. You can attach classes that implement ILogFilter to CLogRoute::$filter.
||Defined By |
|filter() ||This method should be implemented to perform actual filtering of log messages ||ILogFilter |
abstract public void filter(array &$logs)
|$logs ||array ||list of messages. Each array element represents one message with the following structure: array(  => message (string)  => level (string)  => category (string)  => timestamp (float, obtained by microtime(true)); |
This method should be implemented to perform actual filtering of log messages by working on the array given as the first parameter. Implementation might reformat, remove or add information to logged messages.