Hi all,

I was wondering if there is a way to set the 'root' directory for
destination of log files.
The 'root' for my log4j setup is C:\jakarta-tomcat-4.0.3\bin

My Log4j configuration file is attached below.

I have created a DailyRollingFileAppender and set the 'file' as:
log4j.appender.A2.File=logfile

My "appender.A2" logfile appears in the directory
C:\jakarta-tomcat-4.0.3\bin\

All is working fine - but I would like to be able to assign the 'root'
directory.

Can anyone offer advice.

My Log4j configuration file is as below:

=====================================================================
# Log4j configuration file
log4j.rootCategory=DEBUG, A1, A2

# Available levels are DEBUG, INFO, WARN, ERROR, FATAL

# A1 is a ConsoleAppender

log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-5p [%t] - %m%n

# A2 is a DailyRollingFileAppender

log4j.appender.A2.File=logfile
log4j.appender.A2.DatePattern='.'yyyy-MM-dd
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
log4j.appender.A2.append=true


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to