Definition at line 34 of file Priority.php.
◆ __construct()
__construct |
( |
|
$priority, |
|
|
|
$operator = null |
|
) |
| |
Filter logging by $priority. By default, it will accept any log event whose priority value is less than or equal to $priority.
- Parameters
-
integer | $priority | Priority |
string | $operator | Comparison operator |
- Returns
- void
- Exceptions
-
Definition at line 55 of file Priority.php.
57 if (! is_int($priority)) {
58 #require_once 'Zend/Log/Exception.php'; 62 $this->_priority = $priority;
63 $this->_operator = $operator ===
null ?
'<=' : $operator;
◆ accept()
Returns TRUE to accept the message, FALSE to block it.
- Parameters
-
- Returns
- boolean accepted?
Implements Zend_Log_Filter_Interface.
Definition at line 97 of file Priority.php.
99 return version_compare($event[
'priority'], $this->_priority, $this->_operator);
◆ factory()
static factory |
( |
|
$config | ) |
|
|
static |
◆ $_operator
◆ $_priority
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Log/Filter/Priority.php