Log4j Properties in a Custom Place
Posted
by Azder
on Stack Overflow
See other posts from Stack Overflow
or by Azder
Published on 2009-05-17T22:35:40Z
Indexed on
2010/04/23
21:53 UTC
Read the original article
Hit count: 210
I'm using Apache Commons Logging and SLF4J with log4j, but I also want to use the log4j.properties in a custom place like conf/log4.properties. Here is the problem:
If i use
PropertyConfigurator.configure("conf/log4j.properties");
then my app is tied to log4j and defets the purpose of having ACL and SLF4J.
What is the best way to configure it withouth the app ever knowing what the logging implementation is?
© Stack Overflow or respective owner