composer require weew/app-error-handler-monolog
This package integrates Monolog into the weew/app-error-handler package.
To enable this provider simply register it on the kernel.
$app->getKernel()->addProviders([
ErrorHandlingProvider::class,
MonologProvider::class,
MonologErrorHandlerProvider::class,
]);
This is how the config might look like in yaml:
monolog_error_handler:
channel_name: error