logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naidu, Uttam (EM, PTL , Mascot , Consultant)" <Uttam.Na...@penske.com>
Subject RE: usage of ${xxx} properties in log4j.xml
Date Fri, 19 Sep 2003 14:26:24 GMT
Hi

log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=WEB-INF/logs/log4j-log.log
log4j.appender.logfile.MaxFileSize=100KB

May be this is what you are looking for

Uttam

-----Original Message-----
From: Uechi Fabio [mailto:Fabio.Uechi@fhso.ch]
Sent: Friday, September 19, 2003 10:21 AM
To: 'log4j-user@jakarta.apache.org'
Subject: usage of ${xxx} properties in log4j.xml


Hello everybody,

	I want to set dinamically the location where my log file will be
created.
	I was checking jboss log4j.xml and I saw they are using properties
like: ${jboss.server.home.dir} , similar to the ones used in ants build
scripts.
	Does anyone know from where the value for this property comes from??
	Here is the example I mentioned:

  <!-- A time/date based rolling appender -->
  <appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">
    <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
    <param name="Append" value="false"/>

Thanks in advance
Fabio

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

---------------------------------------------------------------------
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