Plop
A simple logging library for PHP
|
An abstract class that can be used to proxy logging calls to an actual logger. More...
Public Member Functions | |
getClass () | |
getFilters () | |
getHandlers () | |
getLevel () | |
getMethod () | |
getNamespace () | |
getRecordFactory () | |
isEnabledFor ($level) | |
log ($level, $msg, array $args=array(),\Exception $exception=null) | |
setFilters (\Plop\FiltersCollectionAbstract $filters) | |
setHandlers (\Plop\HandlersCollectionAbstract $handlers) | |
setLevel ($level) | |
setRecordFactory (\Plop\RecordFactoryInterface $factory) | |
Public Member Functions inherited from Plop\LoggerAbstract | |
alert ($msg, array $args=array(),\Exception $exception=null) | |
critical ($msg, array $args=array(),\Exception $exception=null) | |
debug ($msg, array $args=array(),\Exception $exception=null) | |
emergency ($msg, array $args=array(),\Exception $exception=null) | |
error ($msg, array $args=array(),\Exception $exception=null) | |
exception ($msg,\Exception $exception, array $args=array()) | |
info ($msg, array $args=array(),\Exception $exception=null) | |
notice ($msg, array $args=array(),\Exception $exception=null) | |
warn ($msg, array $args=array(),\Exception $exception=null) | |
warning ($msg, array $args=array(),\Exception $exception=null) | |
Protected Member Functions | |
getIndirectLogger () | |
An abstract class that can be used to proxy logging calls to an actual logger.
Subclasses should implement the _getIndirectLogger() method. You may then use methods from the Plop::LoggerInterface interface on instances of this class' subclasses. Such calls will be proxied to the actual logger returned by the _getIndirectLogger() method.
Definition at line 34 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::getClass | ( | ) |
Return the name of the class this logger applies to.
string | Name of the class this logger relates to. |
Implements Plop\LoggerInterface.
Definition at line 75 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::getFilters | ( | ) |
Get the collection of filters currently associated with this logger.
Plop::FiltersCollectionAbstract | Collection of filters associated with this logger. |
Implements Plop\LoggerInterface.
Definition at line 115 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::getHandlers | ( | ) |
Get the collection of handlers currently associated with this logger.
Plop::HandlersCollectionAbstract | Collection of handlers associated with this logger. |
Implements Plop\LoggerInterface.
Definition at line 101 of file IndirectLoggerAbstract.php.
|
abstractprotected |
Return the actual logger that will be used to proxy calls to methods of the Plop::LoggerInterface interface.
Plop::LoggerInterface | Actual logger to proxy calls to. |
Plop\IndirectLoggerAbstract::getLevel | ( | ) |
Return the minimum level a log record must have to be handled by this class.
int | Minimum level at which log records will be accepted. |
Implements Plop\LoggerInterface.
Definition at line 49 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::getMethod | ( | ) |
Return the name of the method or function this logger applies to.
string | Name of the method/function this logger relates to. |
Implements Plop\LoggerInterface.
Definition at line 81 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::getNamespace | ( | ) |
Return the name of the namespace this logger applies to.
string | Name of the namespace this logger relates to. |
Implements Plop\LoggerInterface.
Definition at line 69 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::getRecordFactory | ( | ) |
Return the factory used to produce log records.
Plop::RecordFactoryInterface | The factory used to produce records. |
Implements Plop\LoggerInterface.
Definition at line 87 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::isEnabledFor | ( | $level | ) |
Implements Plop\LoggerInterface.
Definition at line 63 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::log | ( | $level, | |
$msg, | |||
array | $args = array() , |
||
\Exception | $exception = null |
||
) |
Implements Plop\LoggerInterface.
Definition at line 37 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::setFilters | ( | \Plop\FiltersCollectionAbstract | $filters | ) |
Implements Plop\LoggerInterface.
Definition at line 121 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::setHandlers | ( | \Plop\HandlersCollectionAbstract | $handlers | ) |
Implements Plop\LoggerInterface.
Definition at line 107 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::setLevel | ( | $level | ) |
Implements Plop\LoggerInterface.
Definition at line 55 of file IndirectLoggerAbstract.php.
Plop\IndirectLoggerAbstract::setRecordFactory | ( | \Plop\RecordFactoryInterface | $factory | ) |
Implements Plop\LoggerInterface.
Definition at line 93 of file IndirectLoggerAbstract.php.