craigmcc 00/12/02 18:18:17
Modified: catalina/src/conf server.xml
Log:
Add comments that document how to change the directory to which
log files (including the access logger valve) log their output.
PR: BugRat Bug Report #385
Submitted by: Mayank Shah <[EMAIL PROTECTED]>
Revision Changes Path
1.13 +14 -4 jakarta-tomcat-4.0/catalina/src/conf/server.xml
Index: server.xml
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/conf/server.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- server.xml 2000/11/30 01:56:49 1.12
+++ server.xml 2000/12/03 02:18:17 1.13
@@ -111,14 +111,24 @@
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps">
- <!-- Access log processes all requests for this virtual host -->
+ <!-- Access log processes all requests for this virtual host. By
+ default, log files are created in the "logs" directory relative to
+ $CATALINA_HOME. If you wish, you can specify a different
+ directory with the "directory" attribute. Specify either a relative
+ (to $CATALINA_HOME) or absolute path to the desired directory.
+ -->
<Valve className="org.apache.catalina.valves.AccessLogValve"
- prefix="localhost_access_log." suffix=".txt"
+ directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common"/>
- <!-- Logger shared by all Contexts related to this virtual host -->
+ <!-- Logger shared by all Contexts related to this virtual host. By
+ default (when using FileLogger), log files are created in the "logs"
+ directory relative to $CATALINA_HOME. If you wish, you can specify
+ a different directory with the "directory" attribute. Specify either a
+ relative (to $CATALINA_HOME) or absolute path to the desired
+ directory.-->
<Logger className="org.apache.catalina.logger.FileLogger"
- prefix="localhost_log." suffix=".txt"
+ directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Define properties for each web application. This is only needed