File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Log4j property file from java app Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Log4j property file from java app" Watch "Log4j property file from java app" New topic
Author

Log4j property file from java app

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 234
Hello Friends
I am trying to run an ant task for running java applicaiton. Now in the java application i am using property configurator. In order for the property
configurator to work i have to pass to it a log.properties file reference
This file is inside /logging/log.properties location relative to the
any build.xml. Please can you tell me how to refer to this file from inside the java application in java way relatively,?

The below code did not work..
PropertyConfigurator.configure(ClassLoader.getSystemResource("log.properties"));

Thanks
Farouk


SCJP, SCWCD, SCBCD, SCEA 5
 
IntelliJ Java IDE
 
subject: Log4j property file from java app
 
Threads others viewed
Help! I am getting strange and unusual Eclipse Warnings
issue with logging!!
LOG4J Help URGENT!!!!!!!
Property file prob in Log4j
PropertyPlaceholderConfigurer loading external property file
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture