You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Paul Sutton <pa...@awe.com> on 1999/01/30 13:04:11 UTC

[Win32] default error/access log filesnames

On most platforms, the default name of the error and access logs is the
same as the values on the ErrorLog and CustomerLog lines in the
distributed httpd.conf file.

For example, on OS/2 the logs are defined as error.log and access.log.

But on Windows, they are still error_log and access_log in the program.
This doesn't match the "default" as documented or as given in the
distributed httpd.conf.

Here is a patch to fix this.

Paul

Index: httpd.h
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/include/httpd.h,v
retrieving revision 1.265
diff -u -r1.265 httpd.h
--- httpd.h	1999/01/27 12:16:00	1.265
+++ httpd.h	1999/01/30 12:01:56
@@ -151,8 +151,7 @@
 
 /* The name of the log files */
 #ifndef DEFAULT_XFERLOG
-#ifdef OS2
-/* Set default for OS/2 file system */
+#if defined(OS2) || defined(WIN32)
 #define DEFAULT_XFERLOG "logs/access.log"
 #else
 #define DEFAULT_XFERLOG "logs/access_log"
@@ -160,8 +159,7 @@
 #endif /* DEFAULT_XFERLOG */
 
 #ifndef DEFAULT_ERRORLOG
-#ifdef OS2
-/* Set default for OS/2 file system */
+#if defined(OS2) || defined(WIN32)
 #define DEFAULT_ERRORLOG "logs/error.log"
 #else
 #define DEFAULT_ERRORLOG "logs/error_log"


Re: [Win32] default error/access log filesnames

Posted by Brian Behlendorf <br...@hyperreal.org>.
At 12:04 PM 1/30/99 +0000, Paul Sutton wrote:
>On most platforms, the default name of the error and access logs is the
>same as the values on the ErrorLog and CustomerLog lines in the
>distributed httpd.conf file.
>
>For example, on OS/2 the logs are defined as error.log and access.log.
>
>But on Windows, they are still error_log and access_log in the program.
>This doesn't match the "default" as documented or as given in the
>distributed httpd.conf.
>
>Here is a patch to fix this.

+1.

	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
History is made at night;                         brian@hyperreal.org
  character is what you are in the dark.