Laravel 8: Custom logging overriding error_log
I have a Laravel/Lumen 8 API that in the background includes legacy standard PHP code to provide some functionality. This code is also used in parallel by a separate application, so it has to remain compatible with a non-Laravel environment.