Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ignoring log4j.properties 1

Status
Not open for further replies.

aturetsky

Programmer
Apr 28, 2005
12
US
Is there way to keep log4j.properties on the classpath but to have a given java program reference a different properties file (i.e. log4j.blah.properties) and ignore log4j.properties.

When I try to tell it to use this different file in my code, it still references log4j.properties because it's on the classpath and is referenced automatically.

Again, I know how to make log4j reference a custom named properties file. What I am asking is if I can do that while keeping log4j.properties intact yet ignored.

Any advice?

Thanks,
Alex
 
Thanks for prompt response, but if you look at my question again, you'll see that I know how to make it use a different properties file. My issue is being able to do that while keeping log4j.properties on the classpath and yet being able to ignore it for this particular Java program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top