Just specify a fully-qualified filename.
If you're using a properties file for log4j configuration, here's an
example:
log4j.appender.filer=org.apache.log4j.RollingFileAppender
log4j.appender.filer.File=/web/logs/ewb/workbench/was/PerfGen.log
If you're using an XML file for log4j configuration:
<appender name="FILER" class="org.apache.log4j.RollingFileAppender">
<param name="File"
value="/dev/Workbench/DataCollection/Current/DataCollection.log"/>
<param name="Append" value="false"/>
<param name="ImmediateFlush" value="true"/>
<param name="MaxFileSize" value="1024KB"/>
<param name="MaxBackupIndex" value="1"/> <!-- Keep one backup file
-->
<layout class="org.apache.log4j.PatternLayout">
<!-- Pattern to output the caller's file name and line number -->
<param name="ConversionPattern" value="%5p [%t] (%F:%L) - %m%n"/>
</layout>
</appender>
-----Original Message-----
From: Sudhir S. Shetty [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 9:54 AM
To: Struts Users Mailing List
Subject: Placing of Generated Source files in Apache tomcat bin
directory
Hi Friends,
Sorry for being off-topic
I have a struts application on Tomcat4.0.4 ,Im using Log4J
log4j-1.2.5 ,In my application I take an XML file as an input , and I
generate java bean code, by default the generated coide an the log
files(generated by log4j) are being placed in the "C:\Program Files\Apache
Tomcat 4.0\bin" folder, is there any setting or way by which I can specify a
custom location instead of the default location?
Kindly illustrate with an example.
TIA,
regards,
Sudhir
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>