On Sun, 6 May 2001, dean gaudet wrote:

> use piped logs.  i.e. errorlog "| tee /file1 >/file2"
> (or maybe just use disk mirroring ;)

Whilst on the subject;  We have the reverse problem in mod_log_config;
where you can open the same log file several times. Ideally we should
check if we already have an fd for a log file before openinging it.

i.e ensure that we only eat two, rather than three fd's for the example
given below.

        <Directory /www>
        <Transfer|Custom>Log /path/normal.log
        ..
        <Directory /www/entrydir/>
        <Transfer|Custom>Log /path/home.log
        ...
        <Directory /www/entrydir/deeper/down>
        <Transfer|Custom>Log /path/normal.log
        ..

Dw

> -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
> >
>
>

Reply via email to