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

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

Detailed Description

A filter that only accepts records from a specific logger.

Definition at line 28 of file Level.php.

Constructor & Destructor Documentation

Plop\Filter\Level::__construct (   $level)

Construct a new instance of this filter.

Parameters
int | string$levelName 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().

Member Function Documentation

Plop\Filter\Level::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 53 of file Level.php.

References Plop\Filter\Level\$level.


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