Thursday, June 22, 2017

Jena:How to initialize log4j properly?

While setting up log4j properly is great for "real" projects you might want a quick-and-dirty solution, e.g. if you're just testing a new library.
If so a call to the static method
org.apache.log4j.BasicConfigurator.configure();
will setup basic logging to the console, and the error messages will be gone.


Text taken from
https://stackoverflow.com/questions/1140358/how-to-initialize-log4j-properly

No comments:

Post a Comment