如果一个页面的处理时间超过几秒钟,我希望Apache将该URL记录到某个地方。这有可能吗?我有很多站点,所以我在寻找一种自动的方法来实现这一点,而不是针对每个站点的专有代码。
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html
LogFormat "%h %l %u %t \"%r\" %>s %b %D" common-time
CustomLog logs/access_log_time common-time
LogFormat "\"%r\" %D" measure-time
CustomLog logs/access_log common CustomLog logs/access_log_time measure-time
firebug
apachelog