A
A
Anton B2014-04-25 11:48:08
PHP
Anton B, 2014-04-25 11:48:08

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

4 answer(s)
A
AxisPod, 2014-04-25
@AxisPod

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.

B
BoneFletcher, 2014-04-25
@BoneFletcher

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-...

H
hOtRush, 2014-04-25
@hOtRush

There are also services loggly.com/, https://logentries.com/, although they are paid and I didn’t really like it)

S
svd71, 2014-04-25
@svd71

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);

after it displays all warnings, hints and errors. I do so that my script does not output such junk. If there is enough time, I edit and not my scripts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question