logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tbee <t...@tbee.org>
Subject Re: Config Files
Date Wed, 10 Dec 2003 15:47:47 GMT
Just making sure: note that these are system properties, not environment 
variables. You need to use "-D" when starting java to transport individual 
environment variables to the system properties.


Quoting Ceki Gülcü <ceki@qos.ch>:

> As Alison Ortega mentioned, log4j configurators support the substitution of 
> system properties, actually properties in general. Quite a handy feature...
> 
> At 09:48 AM 12/10/2003 -0500, Alison Ortega wrote:
> >I do this:
> >
> ><appender name="prfLogFile"
> >class="org.apache.log4j.DailyRollingFileAppender">
> >     <param name="File"
> >value="${acsauth.loghome}${file.separator}prf${file.separator}prf.log"/>
> >     ...
> >
> >and set the java properties - this config is portable btw windows and
> >solaris.  Is this what you meant?
> >
> >Alison Ortega
> >North Carolina State University
> >ACS
> >Systems Programmer II
> >919-513-1417
> 
> -- 
> Ceki Gülcü
> 
>       For log4j documentation consider "The complete log4j manual"
>       ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  
> 
> 
> 
> ---------------------------------------------------------------------
> 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