0

I would like to know how I can make monolog for symfony 4 logging fatal errors:

 PHP Fatal error: Allowed memory size of xxxx exhausted

to the main log handler.

In my application these errors are logged in the PHP error_log file.

Sebastian Viereck
  • 5,455
  • 53
  • 53

1 Answers1

0

You can catch fatal error in PHP7, with Throwable exception. https://www.php.net/manual/en/class.throwable.php

This answer can help you https://stackoverflow.com/a/44280053/4939326.

fojt
  • 66
  • 2
  • 5