You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Abramson, Rami" <ra...@terayon.com> on 2003/02/27 17:28:31 UTC

defining a conditional appender in a properties file

Hello all,

How is it possible upon an environment variable to decide if to define a
certain Appender 'TestApp' or not?

Meaning,
Let's say we have a java property 'isAppenderTestApp'.    If it's set "true"
we want the 'TestApp' defined in the log4j property file to take affect, and
if set "false" it should not take affect.
How is it possible to do it?

	thank you :),

              Rami A.
 

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