ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Used for testing purposes. More...
Public Member Functions | ||||
getRecords () | ||||
hasRecordThatContains ($message, $level) | ||||
hasRecordThatMatches ($regex, $level) | ||||
hasRecordThatPasses ($predicate, $level) | ||||
__call ($method, $args) | ||||
![]() | ||||
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.
| ||||
![]() | ||||
__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... | |
![]() | |
write (array $record) | |
Writes the record down to the log of the implementing handler. More... | |
processRecord (array $record) | |
Processes a record. More... | |
![]() | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Protected Attributes | |
$records = array() | |
$recordsByLevel = array() | |
![]() | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Used for testing purposes.
It records all records and gives you access to them for verification.
boolean hasEmergency($record) boolean hasAlert($record) boolean hasCritical($record) boolean hasError($record) boolean hasWarning($record) boolean hasNotice($record) boolean hasInfo($record) boolean hasDebug($record)
boolean hasEmergencyRecords() boolean hasAlertRecords() boolean hasCriticalRecords() boolean hasErrorRecords() boolean hasWarningRecords() boolean hasNoticeRecords() boolean hasInfoRecords() boolean hasDebugRecords()
boolean hasEmergencyThatContains($message) boolean hasAlertThatContains($message) boolean hasCriticalThatContains($message) boolean hasErrorThatContains($message) boolean hasWarningThatContains($message) boolean hasNoticeThatContains($message) boolean hasInfoThatContains($message) boolean hasDebugThatContains($message)
boolean hasEmergencyThatMatches($message) boolean hasAlertThatMatches($message) boolean hasCriticalThatMatches($message) boolean hasErrorThatMatches($message) boolean hasWarningThatMatches($message) boolean hasNoticeThatMatches($message) boolean hasInfoThatMatches($message) boolean hasDebugThatMatches($message)
boolean hasEmergencyThatPasses($message) boolean hasAlertThatPasses($message) boolean hasCriticalThatPasses($message) boolean hasErrorThatPasses($message) boolean hasWarningThatPasses($message) boolean hasNoticeThatPasses($message) boolean hasInfoThatPasses($message) boolean hasDebugThatPasses($message)
Definition at line 68 of file TestHandler.php.
Monolog\Handler\TestHandler::__call | ( | $method, | |
$args | |||
) |
Definition at line 137 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level.
Monolog\Handler\TestHandler::getRecords | ( | ) |
Definition at line 73 of file TestHandler.php.
References Monolog\Handler\TestHandler\$records.
Referenced by Monolog\LoggerTest\testChannel(), Monolog\LoggerTest\testLogMethods(), and Monolog\LoggerTest\testSetTimezone().
|
protected |
Definition at line 83 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\TestHandler\hasRecordThatPasses().
|
protected |
Monolog\Handler\TestHandler::hasRecordThatContains | ( | $message, | |
$level | |||
) |
Definition at line 94 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\TestHandler\hasRecordThatPasses().
Monolog\Handler\TestHandler::hasRecordThatMatches | ( | $regex, | |
$level | |||
) |
Definition at line 101 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level, and Monolog\Handler\TestHandler\hasRecordThatPasses().
Monolog\Handler\TestHandler::hasRecordThatPasses | ( | $predicate, | |
$level | |||
) |
Definition at line 108 of file TestHandler.php.
References Monolog\Handler\AbstractHandler\$level.
Referenced by Monolog\Handler\TestHandler\hasRecord(), Monolog\Handler\TestHandler\hasRecordThatContains(), and Monolog\Handler\TestHandler\hasRecordThatMatches().
|
protected |
{}
Definition at line 130 of file TestHandler.php.
|
protected |
Definition at line 70 of file TestHandler.php.
Referenced by Monolog\Handler\TestHandler\getRecords().
|
protected |
Definition at line 71 of file TestHandler.php.