use piped logs. i.e. errorlog "| tee /file1 >/file2"
(or maybe just use disk mirroring ;)
-dean
On Thu, 3 May 2001, Daniel Stone wrote:
> Hi,
>
> Not sure if this is a Bug, a "feature, not a bug!"(tm), or just PEBCAK.
>
> My current setup is currently like this:
>
> Vhost 1:
> CustomLog -> /usr/local/apache/logs/vhost1/access_log
> ErrorLog -> /usr/local/apache/logs/vhost1/error_log
>
> Vhost 2:
> CustomLog -> /usr/local/apache/logs/vhost2/access_log
> ErrorLog -> /usr/local/apache/logs/vhost2/error_log
> Vhost 3 (default, fallback, should never else be used):
> CustomLog -> /usr/local/apache/logs/vhost3/access_log
> ErrorLog -> /usr/local/apache/logs/vhost3/error_log
>
> But, we want to add another set of logs for each vhost. So, the amended
> setup would be:
>
> Vhost 1:
> CustomLog -> /usr/local/apache/logs/vhost1/access_log
> ErrorLog -> /usr/local/apache/logs/vhost1/error_log
> CustomLog -> /usr/local/apache/logs2/vhost1/access_log
> ErrorLog -> /usr/local/apache/logs2/vhost1/error_log
>
> Vhost 2:
> CustomLog -> /usr/local/apache/logs/vhost2/access_log
> ErrorLog -> /usr/local/apache/logs/vhost2/error_log
> CustomLog -> /usr/local/apache/logs2/vhost2/access_log
> ErrorLog -> /usr/local/apache/logs2/vhost2/error_log
> Vhost 3 (default, fallback, should never else be used):
> CustomLog -> /usr/local/apache/logs/vhost3/access_log
> ErrorLog -> /usr/local/apache/logs/vhost3/error_log
> CustomLog -> /usr/local/apache/logs2/vhost3/access_log
> ErrorLog -> /usr/local/apache/logs2/vhost3/error_log
>
> Unfortunately, this doesn't work. The error log for each only goes to the
> second specified location, while the CustomLog goes to both. I suspect that
> this is more of a lacking feature, but can this please be changed so that we
> can do double-logging of error_log? (One is for a customer, one is for us).
>
> Thanks!
> :) d
>
> (PS: I'm not subscribed to the list, please Cc: me on any replies).
>
> --
> Daniel Stone <[EMAIL PROTECTED]>
> Linux Administrator, maxi multimedia
>