ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Base Handler class providing the Handler structure. More...
Public Member Functions | ||||
__construct ($level=Logger::DEBUG, $bubble=true) | ||||
isHandling (array $record) | ||||
{Checks whether the given record will be handled by this handler.This is mostly done for performance reasons, to avoid calling processors for nothing.Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
| ||||
handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
close () | ||||
Closes the handler. More... | ||||
pushProcessor ($callback) | ||||
{Adds a processor in the stack.
| ||||
popProcessor () | ||||
{Removes the processor on top of the stack and returns it.
| ||||
setFormatter (FormatterInterface $formatter) | ||||
{Sets the formatter.
| ||||
getFormatter () | ||||
{Gets the formatter.
| ||||
setLevel ($level) | ||||
Sets minimum logging level at which this handler will be triggered. More... | ||||
getLevel () | ||||
Gets minimum logging level at which this handler will be triggered. More... | ||||
setBubble ($bubble) | ||||
Sets the bubbling behavior. More... | ||||
getBubble () | ||||
Gets the bubbling behavior. More... | ||||
__destruct () | ||||
Public Member Functions inherited from Monolog\Handler\HandlerInterface | ||||
handle (array $record) | ||||
Handles a record. More... | ||||
Protected Member Functions | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Protected Attributes | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Base Handler class providing the Handler structure.
Definition at line 23 of file AbstractHandler.php.
Monolog\Handler\AbstractHandler::__construct | ( | $level = Logger::DEBUG , |
|
$bubble = true |
|||
) |
int | $level | The minimum logging level at which this handler will be triggered |
Boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
Definition at line 38 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\AbstractHandler\setLevel().
Monolog\Handler\AbstractHandler::__destruct | ( | ) |
Definition at line 166 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\close().
Monolog\Handler\AbstractHandler::close | ( | ) |
Closes the handler.
This will be called automatically when the object is destroyed
Definition at line 67 of file AbstractHandler.php.
Referenced by Monolog\Handler\AbstractHandler\__destruct().
Monolog\Handler\AbstractHandler::getBubble | ( | ) |
Gets the bubbling behavior.
Definition at line 161 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$bubble.
|
protected |
Gets the default formatter.
Definition at line 182 of file AbstractHandler.php.
Referenced by Monolog\Handler\AbstractHandler\getFormatter().
Monolog\Handler\AbstractHandler::getFormatter | ( | ) |
{Gets the formatter.
Implements Monolog\Handler\HandlerInterface.
Definition at line 109 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$formatter, and Monolog\Handler\AbstractHandler\getDefaultFormatter().
Referenced by Monolog\Handler\HipChatHandler\combineRecords(), Monolog\Handler\AbstractProcessingHandler\handle(), Monolog\Handler\MailHandler\handleBatch(), Monolog\Handler\LogglyHandler\handleBatch(), Monolog\Handler\ChromePHPHandler\handleBatch(), Monolog\Handler\AmqpHandler\handleBatch(), Monolog\Handler\ElasticSearchHandler\handleBatch(), and Monolog\Handler\ChromePHPHandler\send().
Monolog\Handler\AbstractHandler::getLevel | ( | ) |
Gets minimum logging level at which this handler will be triggered.
Definition at line 136 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$level.
Monolog\Handler\AbstractHandler::handleBatch | ( | array | $records | ) |
{Handles a set of records at once.
array | $records | The records to handle (an array of record arrays) |
Implements Monolog\Handler\HandlerInterface.
Definition at line 55 of file AbstractHandler.php.
References Monolog\Handler\HandlerInterface\handle().
Monolog\Handler\AbstractHandler::isHandling | ( | array | $record | ) |
{Checks whether the given record will be handled by this handler.This is mostly done for performance reasons, to avoid calling processors for nothing.Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
array | $record | Partial log record containing only a level key |
Implements Monolog\Handler\HandlerInterface.
Definition at line 47 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$level.
Referenced by Monolog\Handler\AbstractProcessingHandler\handle(), Monolog\Handler\PsrHandler\handle(), Monolog\Handler\AmqpHandler\handleBatch(), and Monolog\Handler\HipChatHandler\handleBatch().
Monolog\Handler\AbstractHandler::popProcessor | ( | ) |
{Removes the processor on top of the stack and returns it.
Implements Monolog\Handler\HandlerInterface.
Definition at line 87 of file AbstractHandler.php.
Monolog\Handler\AbstractHandler::pushProcessor | ( | $callback | ) |
{Adds a processor in the stack.
callable | $callback |
Implements Monolog\Handler\HandlerInterface.
Definition at line 74 of file AbstractHandler.php.
Referenced by Monolog\LoggerTest\testProcessorsAreExecuted().
Monolog\Handler\AbstractHandler::setBubble | ( | $bubble | ) |
Sets the bubbling behavior.
Boolean | $bubble | true means that this handler allows bubbling. false means that bubbling is not permitted. |
Definition at line 148 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$bubble.
Monolog\Handler\AbstractHandler::setFormatter | ( | FormatterInterface | $formatter | ) |
{Sets the formatter.
FormatterInterface | $formatter |
Implements Monolog\Handler\HandlerInterface.
Definition at line 99 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$formatter.
Referenced by Monolog\Handler\FirePHPHandlerTest\testConcurrentHandlers(), and Monolog\Handler\FirePHPHandlerTest\testHeaders().
Monolog\Handler\AbstractHandler::setLevel | ( | $level | ) |
Sets minimum logging level at which this handler will be triggered.
int | string | $level | Level or level name |
Definition at line 124 of file AbstractHandler.php.
References Monolog\Handler\AbstractHandler\$level, and Monolog\Logger\toMonologLevel().
Referenced by Monolog\Handler\AbstractHandler\__construct().
|
protected |
Definition at line 26 of file AbstractHandler.php.
Referenced by Monolog\Handler\CouchDBHandler\__construct(), Monolog\Handler\DoctrineCouchDBHandler\__construct(), Monolog\Handler\GroupHandler\__construct(), Monolog\Handler\MandrillHandler\__construct(), Monolog\Handler\MongoDBHandler\__construct(), Monolog\Handler\SwiftMailerHandler\__construct(), Monolog\Handler\SyslogUdpHandler\__construct(), Monolog\Handler\LogEntriesHandler\__construct(), Monolog\Handler\LogglyHandler\__construct(), Monolog\Handler\PsrHandler\__construct(), Monolog\Handler\ErrorLogHandler\__construct(), Monolog\Handler\AbstractHandler\__construct(), Monolog\Handler\CubeHandler\__construct(), Monolog\Handler\AmqpHandler\__construct(), Monolog\Handler\IFTTTHandler\__construct(), Monolog\Handler\GelfHandler\__construct(), Monolog\Handler\SocketHandler\__construct(), Monolog\Handler\BufferHandler\__construct(), Monolog\Handler\RedisHandler\__construct(), Monolog\Handler\SyslogHandler\__construct(), Monolog\Handler\StreamHandler\__construct(), Monolog\Handler\FlowdockHandler\__construct(), Monolog\Handler\DynamoDbHandler\__construct(), Monolog\Handler\RotatingFileHandler\__construct(), Monolog\Handler\ZendMonitorHandler\__construct(), Monolog\Handler\RollbarHandler\__construct(), Monolog\Handler\FleepHookHandler\__construct(), Monolog\Handler\FingersCrossedHandler\__construct(), Monolog\Handler\ElasticSearchHandler\__construct(), Monolog\Handler\NewRelicHandler\__construct(), Monolog\Handler\AbstractSyslogHandler\__construct(), Monolog\Handler\RavenHandler\__construct(), Monolog\Handler\ChromePHPHandler\__construct(), Monolog\Handler\DeduplicationHandler\__construct(), Monolog\Handler\PHPConsoleHandler\__construct(), Monolog\Handler\NativeMailerHandler\__construct(), Monolog\Handler\PushoverHandler\__construct(), Monolog\Handler\SlackHandler\__construct(), Monolog\Handler\HipChatHandler\__construct(), Monolog\Handler\AbstractHandler\getBubble(), Monolog\Handler\WhatFailureGroupHandler\handle(), Monolog\Handler\AbstractProcessingHandler\handle(), Monolog\Handler\PsrHandler\handle(), Monolog\Handler\BufferHandler\handle(), Monolog\Handler\GroupHandler\handle(), Monolog\Handler\SamplingHandler\handle(), Monolog\Handler\FingersCrossedHandler\handle(), Monolog\Handler\PHPConsoleHandler\handle(), Monolog\Handler\HipChatHandler\handleBatch(), and Monolog\Handler\AbstractHandler\setBubble().
|
protected |
Definition at line 31 of file AbstractHandler.php.
Referenced by Monolog\Handler\AbstractHandler\getFormatter(), Monolog\Handler\RavenHandler\setBatchFormatter(), and Monolog\Handler\AbstractHandler\setFormatter().
|
protected |
Definition at line 25 of file AbstractHandler.php.
Referenced by Monolog\Handler\TestHandler\__call(), Monolog\Handler\CouchDBHandler\__construct(), Monolog\Handler\DoctrineCouchDBHandler\__construct(), Monolog\Handler\NullHandler\__construct(), Monolog\Handler\MandrillHandler\__construct(), Monolog\Handler\MongoDBHandler\__construct(), Monolog\Handler\SwiftMailerHandler\__construct(), Monolog\Handler\SyslogUdpHandler\__construct(), Monolog\Handler\LogEntriesHandler\__construct(), Monolog\Handler\LogglyHandler\__construct(), Monolog\Handler\PsrHandler\__construct(), Monolog\Handler\ErrorLogHandler\__construct(), Monolog\Handler\AbstractHandler\__construct(), Monolog\Handler\CubeHandler\__construct(), Monolog\Handler\AmqpHandler\__construct(), Monolog\Handler\IFTTTHandler\__construct(), Monolog\Handler\GelfHandler\__construct(), Monolog\Handler\SocketHandler\__construct(), Monolog\Handler\BufferHandler\__construct(), Monolog\Handler\RedisHandler\__construct(), Monolog\Handler\SyslogHandler\__construct(), Monolog\Handler\StreamHandler\__construct(), Monolog\Handler\FlowdockHandler\__construct(), Monolog\Handler\DynamoDbHandler\__construct(), Monolog\Handler\RotatingFileHandler\__construct(), Monolog\Handler\ZendMonitorHandler\__construct(), Monolog\Handler\FleepHookHandler\__construct(), Monolog\Handler\RollbarHandler\__construct(), Monolog\Handler\ElasticSearchHandler\__construct(), Monolog\Handler\NewRelicHandler\__construct(), Monolog\Handler\AbstractSyslogHandler\__construct(), Monolog\Handler\RavenHandler\__construct(), Monolog\Handler\ChromePHPHandler\__construct(), Monolog\Handler\PHPConsoleHandler\__construct(), Monolog\Handler\NativeMailerHandler\__construct(), Monolog\Handler\PushoverHandler\__construct(), Monolog\Handler\SlackHandler\__construct(), Monolog\Handler\HipChatHandler\__construct(), Monolog\Handler\FingersCrossedHandler\close(), Monolog\Handler\HipChatHandler\combineRecords(), Monolog\Handler\HipChatHandler\getAlertColor(), Monolog\Handler\SlackHandler\getAttachmentColor(), Monolog\Handler\AbstractHandler\getLevel(), Monolog\Handler\LogglyHandler\handleBatch(), Monolog\Handler\RavenHandler\handleBatch(), Monolog\Handler\TestHandler\hasRecord(), Monolog\Handler\TestHandler\hasRecordRecords(), Monolog\Handler\TestHandler\hasRecordThatContains(), Monolog\Handler\TestHandler\hasRecordThatMatches(), Monolog\Handler\TestHandler\hasRecordThatPasses(), Monolog\Handler\DeduplicationHandler\isDuplicate(), Monolog\Handler\AbstractHandler\isHandling(), Monolog\Handler\FilterHandler\setAcceptedLevels(), Monolog\Handler\AbstractHandler\setLevel(), and Monolog\Handler\ZendMonitorHandler\writeZendMonitorCustomEvent().
|
protected |
Definition at line 32 of file AbstractHandler.php.