Plop
A simple logging library for PHP
|
A filter that only accepts records from a specific logger. More...
Public Member Functions | |
__construct ($name= '') | |
filter (\Plop\RecordInterface $record) | |
Protected Attributes | |
$name | |
Identifier of the logger whose records will be handled. | |
$nlen | |
Length of the identifier. | |
Plop\Filter\Name::__construct | ( | $name = '' | ) |
Construct a new instance of this filter.
string | $name | (optional) Identifier of the only logger this filter will accept records from. An empty string means "accept any logger". By default, an empty string is used. |
Definition at line 45 of file Name.php.
References Plop\Filter\Name\$name.
Plop\Filter\Name::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 52 of file Name.php.
References Plop\Filter\Name\$name.