Created
June 15, 2018 19:34
-
-
Save roquie/c0d385a0605313872535b9982cd969b2 to your computer and use it in GitHub Desktop.
Write Lumen framework log entities to stdout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bootstrap/app.php | |
```php | |
<?php | |
$app->extend(\Psr\Log\LoggerInterface::class, function ($logger) { | |
$logger->popHandler(); | |
$logger->pushHandler(new \Monolog\Handler\ErrorLogHandler()); | |
return $logger; | |
}); | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment