什么是日志级别调试? [英] What is Loglevel debug?

查看:47
本文介绍了什么是日志级别调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我网站的 error.log 文件说

My error.log file for my site says

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://URL/TO/REFERER

我的问题是,什么是 LogLevel?我已经用谷歌搜索过了,但似乎我只是在了解有关 Java 的信息.我们的网站使用 PHP.

My question is, what is LogLevel? I've googled it but it seems like I'm just getting things about java. Our site is in PHP.

更新

我将 LogLevel debug 添加到 apache2.conf 并重新启动了 apache,但错误日志中没有任何不同.

I added LogLevel debug to the apache2.conf and restarted apache but am getting nothing different in the error logs.

推荐答案

在 debian 上,编辑/etc/apache2/apache2.conf 并添加:

On debian, edit /etc/apache2/apache2.conf and add :

RewriteLogLevel 3
RewriteLog "/var/log/apache2/rewrite.log"

然后重新加载apache:

then reload apache :

/etc/init.d/apache2 reload

从浏览器访问您的 http 网页,如果错误仍然存​​在,你会在文件中看到一些关于你的错误的信息:

Access your http webpage from a browser, if the bug is still there, you will see some info about your error in the file :

/var/log/apache2/rewrite.log

这篇关于什么是日志级别调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆