Include page url in php error_log

Posted by scatteredbomb on Server Fault See other posts from Server Fault or by scatteredbomb
Published on 2013-07-01T13:42:09Z Indexed on 2013/07/01 16:23 UTC
Read the original article Hit count: 207

Filed under:
|

I'm working on sorting out all my php errors. I've just setup so that all errors go into one log so I can view them. The problem is that I can't really see what page someone trying to access that gave them an error.

Of course I can see the file where the error was generated, but these are often includes used on other pages - so I can't really see what URL a person was attempting to view when this error was displayed, so I can't really replicate the problem.

Any suggestions? Is it possible to include the actual page URL?

© Server Fault or respective owner

Related posts about apache2

Related posts about error-logging