Hi, actually you are right. I think we should improve our documentation here. In meanwhile, please try this: http://wiki.apache.org/logging-log4j/Log4jXmlFormat
Let me know if this solves your problems. Cheers Christian On Sun, Feb 20, 2011 at 1:35 PM, Thomas Wiedmann <th...@gmx.de> wrote: > Hello, > > usually in flat plain text log4j.config files global system properties can > be defined, which may be referenced in the configuration of different > appenders, e. g. > > log4j.logdir=C:/Data/logfiles > ... > log4j.appender.MyAppender1.File=${log4j.logdir}/MyAppender1.log > ... > log4j.appender.MyAppender2.File=${log4j.logdir}/MyAppender2.log > > I found this is a very convenient way to define (and to administer) such > parameters only once globally for the entire log configuration and to use it > on several references as here in the appenders configuration. > > How can such global system properties be defined in xml-based configuration > files (log4j.xml)? > Where is it documented? I'd found no hint about it. > > Thomas Wiedmann > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > -- http://www.grobmeier.de --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org