log\Target filterMessages()

filterMessages() public static method

Filters the given messages according to their categories and levels.

public static array filterMessages ( $messages, $levels = 0, $categories = [], $except = [] )
$messages array

Messages to be filtered. The message structure follows that in yii\log\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.

doc_Yii
2016-10-30 17:06:59
Comments
Leave a Comment

Please login to continue.