logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Ferrari <fluca1...@infinito.it>
Subject specify the relative directory to log
Date Tue, 05 May 2009 13:23:00 GMT
Hi,
having the following configuration in my log4j.xml file:

<appender name="FileLog" class="org.apache.log4j.RollingFileAppender">
		<param name="maxFileSize" value="1000KB" />
		<param name="File" value="log/hrpm.log" />
		<param name="threshold" value="info" />
		<param name="MaxBackupIndex" value="10" />
		<layout class="org.apache.log4j.SimpleLayout" />
	</appender>

is it possible to specify the log directory where should be created? In other 
words, is it possible to specify the root directory for logging, possibly from 
the application itself (not in the configuration file)?

Thanks,
Luca

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


Mime
View raw message