Answer the question
In order to leave comments, you need to log in
How do you analyze PHP error logs?
Good afternoon.
Tell me from your experience, how do you analyze PHP error logs?
Here, let's say, the logs for yesterday were collected, I want to see and correct the errors. Just opening error.log and editing everything in a row is inconvenient if the project is large, there are a lot of repeated errors.
Now I use my simple php script for analyzing logs, which somehow simplifies the work.
Maybe there is an excellent ready-made and at the same time easy tool for solving such a problem?
Thank you.
Answer the question
In order to leave comments, you need to log in
We do not analyze, we do it right away so that there are no errors :-D Well, we also know how to use google if necessary.
Errors can be saved to the database - it's easier to analyze them there:
stackoverflow.com/questions/2911094/outputting-all...
In the same function, you can add an email notification so that every error that occurs can be corrected urgently.
Fatal Errors are handled by a separate function:
stackoverflow.com/questions/277224/how-do-i-catch-...
There are also services loggly.com/, https://logentries.com/, although they are paid and I didn’t really like it)
I just include the following code in the script I'm debugging
error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('error_reporting', E_ALL);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question