[Webtest] Log levels not recognized!?

Marc Guillemot Marc Guillemot <mguillemot@yahoo.fr>
Wed, 23 May 2007 00:33:58 -0700 (PDT)


Hi,

I guess that you haven't this properties file in your classpath (or you hav=
e
an other one in your system classpath).

Marc.


Marcel St=C3=B6r wrote:
>=20
> Hi all,
>=20
> 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=
:
>=20
>     [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=3Den_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] =3D=3D=3D=3D=3D=3D=3D EXCEPTION START =3D=3D=3D=3D=3D=3D=3D=
=3D
> [clickButton] EcmaError: lineNumber=3D[191] column=3D[0] lineSource=3D[
>=20
> [...yadayada...]
> 100s of lines of stacktrace prefixed with [clickButton].
>=20
> ThrowExceptionOnScriptError is false in my config.
>=20
> Below is my log4j.properties content:
>=20
>=20
> # 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=3D"-DlogLevel.root=3Ddebug"
> #=09ant myWebTest.xml
> # or
> #   ANT_OPTS=3D"-DlogLevel.httpclientWire=3Ddebug -DlogLevel.htmlunit=3Dd=
ebug"
> #=09ant myWebTest.xml
> #
> # For precise configuration of the log levels used, the best way is
> still to edit this file
>=20
> # Possible levels: OFF, FATAL, ERROR, WARN, INFO, DEBUG and ALL.
> # http://logging.apache.org/log4j/docs/api/org/apache/log4j/Level.html
> logLevel.root=3DERROR
> logLevel.webtest=3D${logLevel.root}
> logLevel.htmlunit=3D${logLevel.root}
> logLevel.httpclientWire=3D${logLevel.root}
>=20
> ## standard way of logging
> log4j.rootCategory=3D${logLevel.root}, stdout
>=20
> ## general log level for webtest itself
> #log4j.logger.com.canoo.webtest=3D${logLevel.webtest}
> log4j.logger.com.canoo.webtest=3D${logLevel.webtest}
>=20
> ## log all the https specifics
> #log4j.logger.com.canoo.webtest.security=3Ddebug
>=20
> ## log debug information about connection calls
> #log4j.logger.com.canoo.webtest.steps.request=3Ddebug
>=20
> #log4j.logger.com.canoo.webtest.engine.Context=3Ddebug
> #log4j.logger.com.canoo.webtest.steps.pdftest=3Ddebug
>=20
> ## log what htmlunit is doing, helpful to debug http header relay
> #log4j.logger.org.apache.commons.httpclient=3Dinfo
> #log4j.logger.httpclient.wire=3Dinfo
> log4j.logger.httpclient.wire.header=3D${logLevel.httpclientWire}
> log4j.logger.httpclient.wire.content=3D${logLevel.httpclientWire}
>=20
> ## May be useful when looking for javascript problems
> log4j.logger.com.gargoylesoftware.htmlunit=3D${logLevel.htmlunit}
> #log4j.logger.com.gargoylesoftware.htmlunit.javascript=3Ddebug
>=20
> #log4j.logger.org.pdfbox=3Dwarn
>=20
> ##  appletRunner
> ##  Logs the steps
> #log4j.logger.com.canoo.webtest.extension.applet=3Dinfo
> ##  Logs during the execution of the applet
> #log4j.logger.com.canoo.webtest.extension.applet.runner=3Ddebug
> ##  Logs the http and https HttpURLConnection (with cookie handling)
> #log4j.logger.com.canoo.webtest.extension.applet.runner.http=3Ddebug
> ##  Logs the jemmy extension
> #log4j.logger.com.canoo.webtest.extension.applet.jemmy=3Ddebug
>=20
> ## Security
> #log4j.logger.com.canoo.webtest.security=3Ddebug
> #log4j.logger.com.canoo.webtest.steps.request=3Ddebug
>=20
> ## Settings for the Appender(s)
> log4j.appender.stdout=3Dorg.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=3Dorg.apache.log4j.PatternLayout
>=20
>=20
> ## 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.h=
tml
> log4j.appender.stdout.layout.ConversionPattern=3D%5p (%c) - %m%n
>=20
>=20
> Regards,
> Marcel
>=20
> --=20
> Marcel St=C3=B6r, http://www.frightanic.com
> Blog: http://frightanic.wordpress.com
> Skype: marcelstoer
>=20
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20
>=20

--=20
View this message in context: http://www.nabble.com/Log-levels-not-recogniz=
ed%21--tf3796217.html#a10758861
Sent from the WebTest mailing list archive at Nabble.com.