Well the standard php logging system does not meet 100%.
I want to know if there is any way of when an error occurs in php, I need to save a log and some values that are in some variables.
I already know how to create and write the txt file, what do I need and how to identify that an error occurred in php?