hello,
We switched to Apache from CERN and are really enjoying the increased
speed and new features.
However, there are a few things that CERN did which Apache does not
do. One of these is wildcards in mappings, but I have already posted
asking about that several times with no response. :-(
The one I need at the moment is the ability for the server to break
it's log files on a daily boundary - in this case, midnight.
The CERN httpd could do this automatically, and I am interested in
doing this in Apache since it will save us quite a bit of work in the
long run.
I intend to implement this feature as a modification to the experimental
logging module.
The log files will be saved with names in [logname].Jan0195 format.
Is this task complicated by the fact that there are multiple processes
sharing the log's file descriptor? At first glance, it doesn't seem so.
It appears to be a simple check before each log line is written - if
the date is different than that represented by the current file desc,
close it and open a new one with today's date included in the name.
At second glance, I have these questions:
Will there be a problem with multiple children opening the log file in
append mode?
Are the children unable to open the file because they don't have the
proper permissions?
Does the real solution involve having the parent open the log file and
restart it's children at midnight?
Is there any way to do this with a preforking type server?
This is more difficult than I thought!
thank you for your time,
Dwayne Fontenot