logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: log4j generated log file path
Date Tue, 07 Oct 2003 14:16:36 GMT
At 06:56 AM 10/7/2003 -0700, you wrote:
>log4j.appender.DISSLog.File=diss.log

That's the culprit.  Notice that you simply specified the log file 
name.  This is written out, as you've discovered, to a location relative to 
the directory where the JVM started.  Try using something like...

log4j.appender.DISSLog.File=C:\logs\diss.log

...or you can set a system property and reference that...

log4j.appender.DISSLog.File=${logfilelocation}/diss.log

I think that that works in property files?  I know it works in XML config 
files.


Jake


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


Mime
View raw message