Filters the given messages according to their categories and levels.
public static filterMessages ( array $messages, integer $levels, array $categories = [], array $except = [] ) : array | ||
$messages | array | messages to be filtered. The message structure follows that in [[Logger::messages]]. |
$levels | integer | the message levels to filter by. This is a bitmap of level values. Value 0 means allowing all levels. |
$categories | array | the message categories to filter by. If empty, it means all categories are allowed. |
$except | array | the message categories to exclude. If empty, it means all categories are allowed. |
return | array | the filtered messages. |