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 "Gaussmann, Horst" <Ho...@db-ig.com> on 2001/08/20 10:33:30 UTC
Problem to configure relative pathes using DOMConfigurator
Hello to you!
I'am currently trying log4j and find it very useful.
But there is one problem left.
I using log4j inside of tomcat with a webapplication and i want to configure
the file location
of a FileAppender relative to my webapplication path. So i tried to
configure all parameters in a xml file - using DOMConfigurator to load the
information. After that i patched the file location ( using setFile(),
activateOptions() ) to be relative to my webapplication path.
The Problem is that the DOMConfiguration activates the xml configuration
directly during configuration loading.
Is it possible to disable this direct activation or disable a appender first
until i have patched the information for the file ?
thanx horst
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org