我们如何将访问的URL打印到error_log

发布于 2025-02-07 04:02:46 字数 150 浏览 5 评论 0原文

我们希望错误log包括访问者调用的原始页面的URL(URI)。

用户访问网页(URL)。 该页面由多个PHP脚本生成 其中一个脚本会触发

日志中的错误,我看到触发错误的脚本名称。 但是我看不到访问者访问的网址是为了触发这件事。

我们该如何设置?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文