Hi Thomas, 

On Thu, Jan 14, 2010 at 10:06:52AM +0000, Thomas Klein wrote:
> 
> what is the magic that needs to be done in order to have webtest.sh
> use (and pass along) a specific loglevel on the command line?  I
> tried various combinations of -DANT_OPTS= or -Dlog4j or
> -Dwhateveryoumighttellme to no avail.

I didn't try the log4j properties yet but did so with other properties.
Send these along with the webtest call:
 webtest.sh -f build.xml -Dsome_property=some_value

In the log4j.properties there is a sample as you found out already.
The ANT_OPTS must go in your build xml. To set the loglevel on ERROR 
the command line should probably look like:
 webtest.sh -f build.xml -DlogLevel.root=error

INFO is the default log level (in my case) so I would ommit it in the
call.

> Q1: How do I do it? Please don't tell me I will have to use separate 
> log4.properties
Hope it works as described as above,
maybe also try:
 webtest.sh -f build.xml -DlogLevel.httpclientWire=error 
-DlogLevel.htmlunit=error
as suggested in the log4j.proerties

HTH, Stephan
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to