You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@mch.sni.de> on 1997/08/21 17:02:34 UTC
[PATCH] Sending log files to stderr (TransferLog >&2)
I know that this is of little use for unix platforms because of the
possibility of piping to arbitrary commands. Under Win95, however, where
the Windows version is not run as a "service" but runs in an ordinary
shell window, it adds a new functionality to the (except for the startup
message) empty apache window:
The attached patch adds the possibility to send most of the log files to
stderr (or what the underlying OS makes out of "stderr"). So, when a
Win95 user configures
TransferLog >&2
ErrorLog >&2
then [s]he can monitor what happens to apache, load-wise.
I think it's quite useful for debugging and "small server" use.
The macro LOGFILE_STDERR defines the "magic" filename which will be used
for this purpose; I wondered if it should be set to "-" or to ">&2" --
what would you propose?
Martin
--
| S I E M E N S | <Ma...@mch.sni.de> | Siemens Nixdorf
| ------------- | Voice: +49-89-636-46021 | Informationssysteme AG
| N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
Re: [PATCH] Sending log files to stderr (TransferLog >&2)
Posted by Dean Gaudet <dg...@arctic.org>.
+1, although it'd be cool if you (or Randy in his logging patch) could
consolidate the various log file opening routines.
Dean
On Thu, 21 Aug 1997, Martin Kraemer wrote:
> I know that this is of little use for unix platforms because of the
> possibility of piping to arbitrary commands. Under Win95, however, where
> the Windows version is not run as a "service" but runs in an ordinary
> shell window, it adds a new functionality to the (except for the startup
> message) empty apache window:
>
> The attached patch adds the possibility to send most of the log files to
> stderr (or what the underlying OS makes out of "stderr"). So, when a
> Win95 user configures
> TransferLog >&2
> ErrorLog >&2
> then [s]he can monitor what happens to apache, load-wise.
>
> I think it's quite useful for debugging and "small server" use.
>
> The macro LOGFILE_STDERR defines the "magic" filename which will be used
> for this purpose; I wondered if it should be set to "-" or to ">&2" --
> what would you propose?
>
> Martin
> --
> | S I E M E N S | <Ma...@mch.sni.de> | Siemens Nixdorf
> | ------------- | Voice: +49-89-636-46021 | Informationssysteme AG
> | N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany
> ~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
>