PHP error log analysis

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Balazs Wellisch

    PHP error log analysis

    Hello everyone!

    I'm logging all my php errors to a log file. Does anyone know of a program I
    could use to analyze this file and email me the results? I'd like the report
    to contain the most common errors and the number of times they occurred
    during the report period.

    I've thought about using awstats for this purpose, but I'm not sure if it'll
    do the job. Is there anything that would do this out of the box on Linux?

    Also, is there a way to have PHP automatically email me when a fatal error
    occurs?

    Any advice would be appreciated.

    Balazs


  • ZeldorBlat

    #2
    Re: PHP error log analysis


    Balazs Wellisch wrote:[color=blue]
    > Also, is there a way to have PHP automatically email me when a fatal error
    > occurs?
    >[/color]

    Using set_error_handl er() you can do whatever you like. Take a look:

    <http://www.php.net/set_error_handl er>

    Comment

    • Drakazz

      #3
      Re: PHP error log analysis

      .... and then you can parse it in a way you would like to ..

      Comment

      Working...