The following reply was made to PR mod_log-any/1050; it has been noted by GNATS.

From: Marc Slemko <[EMAIL PROTECTED]>
To: David Birnbaum <[EMAIL PROTECTED]>
Subject: Re: mod_log-any/1050: Logging of virtual server to error_log as well
Date: Sun, 24 Aug 1997 23:11:05 -0600 (MDT)

 
 On Mon, 25 Aug 1997, David Birnbaum wrote:
 
 > If you have the ErrorLog in a VirtualHost directive, then error message
 > from that particular virtual server (including STDERR, which is waht I'm
 > really interested in) go to that log.  I guess all that I really would
 > want is some way to prepend the name of the virtual host to any of those
 > error strings.  I don't understand how you bind a particular error message
 > to a given output, but since it is done somewhere in the VirtualHost code,
 > it seems as though that same mechanism could be used. 
 
 Not really.  All that is done is a different file descriptor is for the
 log.  The CGI is run with stderr pointing to that file.  Apache isn't in
 the loop any more.  All that can be done easily is mess with what file
 descriptor gets the output, we can't edit it in-stream.
 
 There are various workarounds and ways to do something like this, but it
 isn't an easy change.
 

Reply via email to