|
Plop
A simple logging library for PHP
|
A filter that only accepts records from a specific logger. More...
Inheritance diagram for Plop\Filter\Level:Public Member Functions | |
| __construct ($level) | |
| filter (\Plop\RecordInterface $record) | |
Protected Attributes | |
| $level | |
| Minimal log level that will be accepted (inclusive). | |
| Plop\Filter\Level::__construct | ( | $level | ) |
Construct a new instance of this filter.
| int | string | $level | Name or value of the minimal level that this filter should allow. |
Definition at line 40 of file Level.php.
References Plop\Filter\Level\$level, Plop\Plop\getInstance(), and Plop\Plop\getLevelValue().
| Plop\Filter\Level::filter | ( | \Plop\RecordInterface | $record | ) |
Return whether the given record should be handled or filtered out.
| Plop::RecordInterface | $record | The record to filter. |
| bool | Whether the given record should be handled normalled (true) or filtered out (false). |
Implements Plop\FilterInterface.
Definition at line 53 of file Level.php.
References Plop\Filter\Level\$level.