Customize error log of PHP for WordPress debugging

- Development, Open Source, Wordpress

Start with a case example:

  • Errors on the log that reference functions.php or hook stuff from core
  • You cannot find the original method causing the issue
  • This error happen on production
  • You cannot find on production (without replicating and investigating) but you don’t know the URL (that cause the issue) or why it is happening

My idea was to create a plugin that I put on mu-plugins so is automatically enabled and not create issue on production.

Also that the log from the server contain the URL and the filter where is happening the error.

An example of output:


An example of reporting:

We cannot forget also the support for Query-Monitor that this snippet contain 😀

Liked it? Take a second to support Mte90 on Patreon!

Become a Patreon
All the stuff released in this website, where the author is Daniele Scasciafratte, is under the GPL 2.0 license except when the resources have their licenses.

Leave a Reply