From: Erskine, C. <chr...@ed...> - 2004-09-29 19:29:30
|
Commons_logging has a startup sequence which looks for the log4j package on the classpath and uses it if found. If it is found, it looks for (depending on the version) log4j.properties and/or log4j.xml to initialize the appenders. This initialization occurs for the first class to do some form of logging which in this case is HttpClient. What could be done is to create a log4j.properties file which could live in the src/test/java directory that would get copied to the output directory for the tests. This would not be copied to the distribution directory and packaged with htmlunit. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 Phone: mailto:chr...@ed... -----Original Message----- From: Brad Clarke [mailto:yo...@br...] Sent: Wednesday, September 29, 2004 12:16 PM To: htm...@li... Subject: [Htmlunit-user] log4j I've been forced to add log4j to my testing classpath for something other than htmlunit and whenever I run my tests I get these from httpclient: log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient). log4j:WARN Please initialize the log4j system properly. This didn't happen until I upgraded all the jars and used latest CVS. Either I changed more than I thought when upgrading all the jars or something changed in htmlunit. Any ideas? Brad C ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |