RE: CustomLog to a pipe question

"Janis Putrams" <[email protected]> Thu, 6 Nov 2003 17:41:40 +0200
Newsgroups gmane.comp.apache.mod-log-spread.user
Message-ID <[email protected]>
Hi!
Is mod_log_spread working fine for y? Because I installed it recently and
got connection failures on heigh load. Posted to mailing list but had no
answer so far. Sad but true .. Got to look for another solution.
Janis Putrams

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Leonardo Herrera
Sent: Thursday, November 06, 2003 5:13 PM
To: [email protected]
Subject: Re: [mls-users] CustomLog to a pipe question


Leonardo Herrera wrote:
> Hi, I have a question. Does mod_log_spread support logging to a pipe
> instead of file in the CustomLog directive? I tried to do this without
> result, for example
>
>  SpreadDaemon 4803
>  CustomLog "|/bin/rotatelogs /logs/access_log 300" common
>  CustomLog $hits common

I hate to reply to myself, but I found the problem. There is a small bug
in mod_log_spread.c that disallowed to use piped log files. I've
attached a diff file (actually, the fix is to add a missing "else" in
open_config_log(), the rest is purely cosmetic)

Regards,
--
Leonardo Herrera L.
mailto:[email protected]