开发者

How to get perl stderr to httpd log file when using syslog

开发者 https://www.devze.com 2023-02-14 10:53 出处:网络
This question is about HTTPD (Apache) 2.? on centOS and modperl 1.7+ When I use the apache directive ErrorLog logs/error_log, my perl warnings show up in the error_log file. When I change this to Er

This question is about HTTPD (Apache) 2.? on centOS and modperl 1.7+

When I use the apache directive ErrorLog logs/error_log, my perl warnings show up in the error_log file. When I change this to ErrorLog syslog:local1, no perl warnings show up in the syslog target. My question is, how do I remedy开发者_如何学运维 this??

(syslog reads: local1.* /var/log/httpd_error)

Current Apache docs say this

A very wide variety of different messages can appear in the error log. Most look similar to the example above. The error log will also contain debugging output from CGI scripts. Any information written to stderr by a CGI script will be copied directly to the error log.

Old Apache (1.3) docs talk about something called HookStderr and stderr being sent to /dev/null. I tried using this and configtest fails.

Has anyone done this?


https://serverfault.com/questions/241751/how-to-get-perl-stderr-to-httpd-log-file-when-using-syslog

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号