From: Mike B. <mb...@Ga...> - 2003-03-18 18:27:53
|
Brad Clarke wrote: > I have been looking for a way to get rid of these and the best guess I > have currently is here: > com.gargoylesoftware.htmlunit.HttpWebConnection, line 228: > > currently: ((SimpleLog)log).setLevel( SimpleLog.LOG_LEVEL_WARN ); > change to: ((SimpleLog)log).setLevel( SimpleLog.LOG_LEVEL_OFF ); // or > whatever other level will do it This works if (and only if) the end user is using the SimpleLog. If they are using JDK1.4 then they'll likely be using the jdk1.4 log and if they have log4j in their classpath, they'll be using log4j. There isn't a way to change the logging level that is independant of the logger being used. That's the problem. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |