Log4j in eclipse 4 application [message #961819] |
Sun, 28 October 2012 12:29  |
Eclipse User |
|
|
|
What is the standard practice when it comes to logging in an eclipse application?
I want to use log4j and to do that I created a plugin from a jar.
This works but log4j.xml is now coupled with the corresponding plugin and for the end user to turn-on/off debugging is not easy as he must search and find log4j inside plugins.
I thought to use:
org.apache.log4j.xml.DOMConfigurator.configure(System.getProperty("user.dir")+"\\log4j.xml");
on my application startup but I am not really sure where would be the most appropriate place to run this.
So am I following the right approach? Any help?
I could not find any online resources for log4j in eclipse/osgi applications.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.42632 seconds