logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naresh Agarwal <naresh_i...@yahoo.com>
Subject Re: log4j generated log file path
Date Tue, 07 Oct 2003 13:56:26 GMT
Hi Jake,
 
my property file looks as below :
 
-----------

# Root logger, uses appender by name of Log

log4j.rootLogger=INFO

log4j.logger.DISSLogger=INFO, DISSLog

log4j.additivity.logger.DISSLogger=false

# DISSLog appender, rolling file appender with file size 100KB, max 10 files

log4j.appender.DISSLog=org.apache.log4j.RollingFileAppender

log4j.appender.DISSLog.File=diss.log

log4j.appender.DISSLog.MaxFileSize=100KB

# Keep backup files

log4j.appender.DISSLog.MaxBackupIndex=10

log4j.appender.DISSLog.layout=org.apache.log4j.PatternLayout

log4j.appender.DISSLog.layout.ConversionPattern=%d [%t] %-5p - %C{1}::%M %m%n

------------

How can we specify directory for output of your FileAppender?
 
thanks,
Naresh
Jacob Kjome <hoju@visi.com> wrote:

That is where the JVM is started from and, hence, the location to which 
relatively specified files will be written. What does your config file 
look like? Have you specified a directory for output of your FileAppender?

Jake

At 04:40 AM 10/7/2003 -0700, you wrote:

>Hi
>
>I'm using log4j in my web application, which is deployed in Tomcat.
>
>By default, log4j generates the log file user's directory i.e., 
>"C:\Documents and Settings\drathi\Start Menu\Programs\Apache Tomcat 4.1".
>
>How can I make log4j to generate this log file at some other place?
>
>thanks,
>
>Naresh
>
>
>
>
>
>---------------------------------
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message