Definition at line 19 of file PsrLogCompatTest.php.
◆ getLogger()
Monolog\PsrLogCompatTest::getLogger |
( |
| ) |
|
Definition at line 23 of file PsrLogCompatTest.php.
25 $logger =
new Logger(
'foo');
26 $logger->pushHandler(
$handler =
new TestHandler);
27 $logger->pushProcessor(
new PsrLogMessageProcessor);
28 $handler->setFormatter(
new LineFormatter(
'%level_name% %message%'));
◆ getLogs()
Monolog\PsrLogCompatTest::getLogs |
( |
| ) |
|
Definition at line 35 of file PsrLogCompatTest.php.
37 $convert =
function ($record) {
38 $lower =
function ($match) {
39 return strtolower($match[0]);
42 return preg_replace_callback(
'{^[A-Z]+}', $lower, $record[
'formatted']);
45 return array_map($convert, $this->handler->getRecords());
◆ $handler
Monolog\PsrLogCompatTest::$handler |
|
private |
The documentation for this class was generated from the following file: