How can we print the visited URL to error_log

30 views Asked by At

We would like the error-log to include the URL (uri) of the original page called by the visitor.

A user visits a web page (URL). The page is generated by multiple PHP scripts One of the scripts triggers an error

In the logs, I see the script name that triggered the error. But I cannot see what URL the visitor visited to trigger this whole thing.

How can we set this up?

0

There are 0 answers