From: James A. <the...@ya...> - 2003-08-12 17:41:05
|
I do have log4j in my classpath, but I don't want it to log anything. I use HtmlUnit with JUnit and JUnitReport, so I have report-type information there. The reason I'm getting the debug information ( I believe ) is because it is trying to write to the log and i don't have permission to it, so it throws a FileNotFoundException. So, I guess, is there any way to turn that all off? --- Mike Bowler <mb...@Ga...> wrote: > James Asher wrote: > > Indeed, it was an older version of xerces. I > thought > > it was the current version, but I guess not - all > I > > did was replace it with your distributed version. > > > > I can now see in the output that it is returning > > values now where before there were none. However, > now > > I get many lines of DEBUG information in the > > System.out, is that a setting that I've turned on > > unknowningly? A default? Can I turn it off? > > By default, you should only be seeing INFO, ERROR > and FATAL messages. > DEBUG and TRACE messages should only display if you > have explicitly > turned them on. Having said that, it's always > possible that I've got > the setting wrong for the default case. > > HtmlUnit is using commons-logging which in turn will > delegate to another > logging framework. If you are using java 1.4 then > it will use the java > built in logging support. If you are not using 1.4 > but have log4j in > your classpath then it will use that. Otherwise it > will use SimpleLog. > How you change the logging settings varies according > to the logging > implementation you are using. Docs for SimpleLog > can be found at > http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/impl/SimpleLog.html > > Hope this helps. > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : > mb...@Ga... > Fax : (416) 822-0975 | Website: > http://www.GargoyleSoftware.com > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual > Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > HtmlUnit-develop mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-develop __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |