38 foreach ($testHandlers as
$test) {
39 $this->assertTrue($test->hasDebugRecords());
40 $this->assertTrue($test->hasInfoRecords());
41 $this->assertTrue(count($test->getRecords()) === 2);
53 foreach ($testHandlers as
$test) {
54 $this->assertTrue($test->hasDebugRecords());
55 $this->assertTrue($test->hasInfoRecords());
56 $this->assertTrue(count($test->getRecords()) === 2);
79 $handler->pushProcessor(
function ($record) {
80 $record[
'extra'][
'foo'] =
true;
85 $this->assertTrue(
$test->hasWarningRecords());
87 $this->assertTrue($records[0][
'extra'][
'foo']);
98 $handler->pushProcessor(
function ($record) {
99 $record[
'extra'][
'foo'] =
true;
104 $this->assertTrue(
$test->hasWarningRecords());
106 $this->assertTrue($records[0][
'extra'][
'foo']);
117 parent::handle($record);
119 throw new \Exception(
"ExceptionTestHandler::handle");
const DEBUG
Detailed debug information.
testHandleException()
Monolog::handle
const ERROR
Runtime errors.
testHandle()
Monolog::__construct Monolog::handle
testConstructorOnlyTakesHandler()
Monolog::__construct InvalidArgumentException
getRecord($level=Logger::WARNING, $message='test', $context=array())
testHandleBatch()
Monolog::handleBatch
Forwards records to multiple handlers suppressing failures of each handler and continuing through to ...
const WARNING
Exceptional occurrences that are not errors.
Create styles array
The data for the language used.
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...
Used for testing purposes.
testIsHandling()
Monolog::isHandling
testHandleUsesProcessors()
Monolog::handle
const INFO
Interesting events.