PDA

View Full Version : warn() appears in incorrect log file


DougMck
10-14-2005, 02:46 AM
Hi Guys,

We are running perl on an apache 1.3.3 server on AIX with 3 virtual hosts.

My boss wants me to figure out why when things are warned in our perl scripts the output goes to the common log file and not the log file for the individual host like errors do.

This used to work before we upgraded to new hardware and perl 5.8.5, but now it does not and I can't figure out why (have spent all day on the net looking).

So I was wondering if any of you fellow perl coders out there have the same problem, know how to fix this, or at least know why this is.

Is it some change in the way that perl 5.8 works over our previous version?
Or is it our new version of AIX (5.2)?

Any help that you could give me on this would be great, thanks.

FishMonger
10-14-2005, 03:08 AM
Check your httpd.conf file to see what you have for the ErrorLog and LogLevel directives for the virtual host.

example:
ErrorLog logs/host.foo.com-error_log
LogLevel warn

http://httpd.apache.org/docs/1.3/logs.html
http://httpd.apache.org/docs/1.3/mod/core.html

DougMck
10-14-2005, 04:16 AM
All the logs for the virtual hosts are different and it does work for errors, but warnings are placed in the common log.

Tried setting the log level for the common log to 'crit' and specifiying a log level of 'warn' for the virtual host logs but this had no effect.

DougMck
10-25-2005, 09:25 PM
Still have not managed to figure this out.

If you have had or are having the same problem please post a reply so I can tell my boss that we are not the only ones with this problem.

Any suggestions are most welcome.

Thanks.