Definition at line 34 of file Message.php.
◆ __construct()
Filter out any log messages not matching $regexp.
- Parameters
-
string | $regexp | Regular expression to test the log message |
- Returns
- void
- Exceptions
-
Definition at line 48 of file Message.php.
50 if (@preg_match($regexp,
'') ===
false) {
51 #require_once 'Zend/Log/Exception.php'; 54 $this->_regexp = $regexp;
◆ accept()
Returns TRUE to accept the message, FALSE to block it.
- Parameters
-
- Returns
- boolean accepted?
Implements Zend_Log_Filter_Interface.
Definition at line 81 of file Message.php.
83 return preg_match($this->_regexp, $event[
'message']) > 0;
◆ factory()
static factory |
( |
|
$config | ) |
|
|
static |
◆ $_regexp
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Log/Filter/Message.php