You can control this behavior using the assert_options() call. I then get none of the log events described above. There are multiple methods to configure php error reporting The ‘php.ini’ is the main configuration file for php To set error reporting levels for all scripts, find the ‘error_reporting’ directive and modify it accordingly This configuration will report all errors except for warnings and notices.
This article will cover how to disable php deprecated warnings similar to the following Directive 'allow_url_include' is deprecated in unknown on line 0 This is not the first time someone asks this question, but i went through all the similar cases i found and could not resolve this issue Those are warnings generated by php itself Since they're printed to stdout (or maybe stderr) without being caught, they end up in your server logs I would expect that entry in your php.ini to be sufficient to silence those warnings.
If you do this with e.g Right now there's no way to get rid of these warnings.
OPEN