logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alistair Hopkins" <alist...@berthengron.co.uk>
Subject Location of log files
Date Fri, 05 Jan 2001 14:38:17 GMT
Just spent the morning implementing log4j, a lovely thing.  Why didn't I
start using it 6 months ago?

Just one question:

Is there any way I can set in code a root directory for log files, so that
the log4j.properties becomes more portable?

i.e.: instead of

log4j.appender.statsLog.File=/home/appserver/tomcat/logs/stats.log

i should be able to use

log4j.appender.statsLog.File=stats.log

then use code when I use the PropertyConfigurator to set the root directory?

Thanks,

Alistair.


Mime
View raw message