Plop
A simple logging library for PHP
Plop\Filter\Name Class Reference

A filter that only accepts records from a specific logger. More...

+ Inheritance diagram for Plop\Filter\Name:

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.
 

Detailed Description

A filter that only accepts records from a specific logger.

Definition at line 28 of file Name.php.

Constructor & Destructor Documentation

Plop\Filter\Name::__construct (   $name = '')

Construct a new instance of this filter.

Parameters
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.

Member Function Documentation

Plop\Filter\Name::filter ( \Plop\RecordInterface  $record)

Return whether the given record should be handled or filtered out.

Parameters
Plop::RecordInterface$recordThe record to filter.
Return values
boolWhether 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.


The documentation for this class was generated from the following file: