jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril Scetbon <cyril.scet...@free.fr>
Subject Re: using debug in Java request sampler
Date Wed, 07 Dec 2011 16:41:37 GMT
I found the solution. I just need to add 
log_level.jmeter.protocol.java=DEBUG in jmeter.properties.

Anyone knows if it's possible to set the level to the jmeter level. That 
is to say, if I enable debug in jmeter gui it gets the same level for 
the package jmeter.protocol.java ?

On 12/6/11 8:56 AM, Cyril Scetbon wrote:
> On 12/6/11 12:43 AM, sebb wrote:
>> The info is in the source - there are no logging calls in the 
>> SleepTest code.
> Wrong !
>
> private void listParameters(JavaSamplerContext context) {
>         if (*getLogger().isDebugEnabled()*) {
>             Iterator<String> argsIt = 
> context.getParameterNamesIterator();
>             while (argsIt.hasNext()) {
>                 String name = argsIt.next();
> *getLogger().debug(name + "=" + context.getParameter(name));*
>             }
>         }
>     }
>
> Did you really check the sources ?
>
> the matter is that the logger is provided by jmeter and so should get 
> all the events that the class sends when debug mode is enabled. 
> However, even I enable DEBUG mode in jmeter, I see DEBUG logs except 
> the one sent from the java request classes :(
> Maybe there's a configuration parameter that disables it (as 
> getLogger().isDebugEnabled() is always false)
>
> anyone else ?
>


-- 
Cyril SCETBON


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message