Forum Moderators: phranque

Message Too Old, No Replies

Apache and Logs

Apache,Log,Cronolog,Rotate

         

nick2007

9:40 am on Aug 21, 2008 (gmt 0)

10+ Year Member



I have setup Apache to use cronolog in order to create a new access log for each day.

For every VirtualHost I have the following:

CustomLog "¦c:/apache/bin/cronolog.exe c:/logs/a-access-%Y%m%d.log" common

The problem is each vHost creates two new windows processes (CMD and cronolog). In total I have 17 vHosts so that's 34 processes for logging. How can I limit it to two processes for all vHosts?

Or is there an alternative to cronolog which will create a new log for every day?

I looked at rotatelogs but this also creates a new process(rotatelogs) for each vHost.

Maybe if I could supply vHost as a parameter in the filename for a global log file?