Hi all, In certain cases the defined log levels don't seem to be recognized. My global level is ERROR and still I see INFO messages and their stacktraces:
[invoke] 22.05.2007 13:51:41 org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded [invoke] INFO: Redirect requested but followRedirects is disabled [invoke] 22.05.2007 13:51:49 com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie [invoke] INFO: Added cookie: ubslang=en_US [clickButton] 22.05.2007 13:51:50 org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded [clickButton] INFO: Redirect requested but followRedirects is disabled [clickButton] 22.05.2007 13:51:55 com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine execute [clickButton] INFO: Catched script exception [clickButton] ======= EXCEPTION START ======== [clickButton] EcmaError: lineNumber=[191] column=[0] lineSource=[ [...yadayada...] 100s of lines of stacktrace prefixed with [clickButton]. ThrowExceptionOnScriptError is false in my config. Below is my log4j.properties content: # Define some properties used within this file # these properties may be overriden by system properties allowing to change log level without editing this file # ex: # ANT_OPTS="-DlogLevel.root=debug" # ant myWebTest.xml # or # ANT_OPTS="-DlogLevel.httpclientWire=debug -DlogLevel.htmlunit=debug" # ant myWebTest.xml # # For precise configuration of the log levels used, the best way is still to edit this file # Possible levels: OFF, FATAL, ERROR, WARN, INFO, DEBUG and ALL. # http://logging.apache.org/log4j/docs/api/org/apache/log4j/Level.html logLevel.root=ERROR logLevel.webtest=${logLevel.root} logLevel.htmlunit=${logLevel.root} logLevel.httpclientWire=${logLevel.root} ## standard way of logging log4j.rootCategory=${logLevel.root}, stdout ## general log level for webtest itself #log4j.logger.com.canoo.webtest=${logLevel.webtest} log4j.logger.com.canoo.webtest=${logLevel.webtest} ## log all the https specifics #log4j.logger.com.canoo.webtest.security=debug ## log debug information about connection calls #log4j.logger.com.canoo.webtest.steps.request=debug #log4j.logger.com.canoo.webtest.engine.Context=debug #log4j.logger.com.canoo.webtest.steps.pdftest=debug ## log what htmlunit is doing, helpful to debug http header relay #log4j.logger.org.apache.commons.httpclient=info #log4j.logger.httpclient.wire=info log4j.logger.httpclient.wire.header=${logLevel.httpclientWire} log4j.logger.httpclient.wire.content=${logLevel.httpclientWire} ## May be useful when looking for javascript problems log4j.logger.com.gargoylesoftware.htmlunit=${logLevel.htmlunit} #log4j.logger.com.gargoylesoftware.htmlunit.javascript=debug #log4j.logger.org.pdfbox=warn ## appletRunner ## Logs the steps #log4j.logger.com.canoo.webtest.extension.applet=info ## Logs during the execution of the applet #log4j.logger.com.canoo.webtest.extension.applet.runner=debug ## Logs the http and https HttpURLConnection (with cookie handling) #log4j.logger.com.canoo.webtest.extension.applet.runner.http=debug ## Logs the jemmy extension #log4j.logger.com.canoo.webtest.extension.applet.jemmy=debug ## Security #log4j.logger.com.canoo.webtest.security=debug #log4j.logger.com.canoo.webtest.steps.request=debug ## Settings for the Appender(s) log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout ## Pattern to output the caller's file name and line number. ## find description of format under ## http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html log4j.appender.stdout.layout.ConversionPattern=%5p (%c) - %m%n Regards, Marcel -- Marcel Stör, http://www.frightanic.com Blog: http://frightanic.wordpress.com Skype: marcelstoer _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

