Reputation: 7417
I want to use Log4j in my java standalone application. Where should I put my log4j.properties file so that I can distribute it with my application? Should it be located in the log4j jar or im my application's jar? Which is the correct path?
Upvotes: 0
Views: 1269
Reputation: 1449
It is always advisable to put such configurations in your own packaging war or jar. This way you do not have the risk of your changes or configurations being overridden .
Conversely , the issues with packaging with other 3rd party jar's is explained by Martin.
Upvotes: 0
Reputation: 9651
Put in in your application's jar.
As a rule of thumb, you should avoid re-packing existing jars, especially third-party jars. Why?
Upvotes: 2