ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Used for testing purposes. More...
Public Member Functions | ||||
getRecords () | ||||
clear () | ||||
hasRecordThatContains ($message, $level) | ||||
hasRecordThatMatches ($regex, $level) | ||||
hasRecordThatPasses ($predicate, $level) | ||||
__call ($method, $args) | ||||
Public Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | ||||
handle (array $record) | ||||
{Handles a record.All records may be passed to this method, and the handler should discard those that it does not want to handle.The return value of this function controls the bubbling process of the handler stack. Unless the bubbling is interrupted (by returning true), the Logger class will keep on calling further handlers in the stack with a given log record.
| ||||
Public Member Functions inherited from Monolog\Handler\AbstractHandler | ||||
__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 () | ||||
Protected Member Functions | |
hasRecordRecords ($level) | |
hasRecord ($record, $level) | |
write (array $record) | |
{} More... | |
Protected Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | |
write (array $record) | |
Writes the record down to the log of the implementing handler. More... | |
processRecord (array $record) | |
Processes a record. More... | |
Protected Member Functions inherited from Monolog\Handler\AbstractHandler | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Protected Attributes | |
$records = array() | |
$recordsByLevel = array() | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Used for testing purposes.
It records all records and gives you access to them for verification.
bool hasEmergency($record) bool hasAlert($record) bool hasCritical($record) bool hasError($record) bool hasWarning($record) bool hasNotice($record) bool hasInfo($record) bool hasDebug($record)
bool hasEmergencyRecords() bool hasAlertRecords() bool hasCriticalRecords() bool hasErrorRecords() bool hasWarningRecords() bool hasNoticeRecords() bool hasInfoRecords() bool hasDebugRecords()
bool hasEmergencyThatContains($message) bool hasAlertThatContains($message) bool hasCriticalThatContains($message) bool hasErrorThatContains($message) bool hasWarningThatContains($message) bool hasNoticeThatContains($message) bool hasInfoThatContains($message) bool hasDebugThatContains($message)
bool hasEmergencyThatMatches($message) bool hasAlertThatMatches($message) bool hasCriticalThatMatches($message) bool hasErrorThatMatches($message) bool hasWarningThatMatches($message) bool hasNoticeThatMatches($message) bool hasInfoThatMatches($message) bool hasDebugThatMatches($message)
bool hasEmergencyThatPasses($message) bool hasAlertThatPasses($message) bool hasCriticalThatPasses($message) bool hasErrorThatPasses($message) bool hasWarningThatPasses($message) bool hasNoticeThatPasses($message) bool hasInfoThatPasses($message) bool hasDebugThatPasses($message)
Definition at line 66 of file TestHandler.php.
Monolog\Handler\TestHandler::__call | ( | $method, | |
$args | |||
) |
Definition at line 140 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level, and array.
Monolog\Handler\TestHandler::clear | ( | ) |
Monolog\Handler\TestHandler::getRecords | ( | ) |
|
protected |
Definition at line 87 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\TestHandler\hasRecordThatPasses().
|
protected |
Monolog\Handler\TestHandler::hasRecordThatContains | ( | $message, | |
$level | |||
) |
Definition at line 98 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level, $message, and Monolog\Handler\TestHandler\hasRecordThatPasses().
Monolog\Handler\TestHandler::hasRecordThatMatches | ( | $regex, | |
$level | |||
) |
Definition at line 105 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\TestHandler\hasRecordThatPasses().
Monolog\Handler\TestHandler::hasRecordThatPasses | ( | $predicate, | |
$level | |||
) |
Definition at line 112 of file TestHandler.php.
References $i, and Monolog\Handler\AbstractHandler\$level.
Referenced by Monolog\Handler\TestHandler\hasRecord(), Monolog\Handler\TestHandler\hasRecordThatContains(), and Monolog\Handler\TestHandler\hasRecordThatMatches().
|
protected |
{}
Definition at line 134 of file TestHandler.php.
|
protected |
Definition at line 68 of file TestHandler.php.
Referenced by Monolog\Handler\TestHandler\getRecords().
|
protected |
Definition at line 69 of file TestHandler.php.