You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Jeremy Arnold <je...@bigfoot.com> on 2003/08/18 19:45:12 UTC

"Correct" logger

Hello,
    I mostly stayed on the side-lines a little while back when some of 
you guys were making changes to the logging system.  So now I'd like to 
check: what is the "correct" way to define a logger.  My guess is:

private static Logger log = LoggingManager.getLoggerForClass( );

    Am I close?  Do we still use 
Hierarchy.getDefaultHierarchy().getLogerFor("xxx"); in some places?

Jeremy
http://xirr.com/~jeremy_a


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


Running embeded Javascript from a Sampler

Posted by Don Dehm <dd...@edgenet.com>.
I am doing some research on the implementation of some tests we need to
create.  We have several *.jsp pages that make use of button evoked
java-script that loads documents (as apposed to using "POST" and "GET").
Can someone provide a pointer to me that would allow the emulation of
the button press, or at least running the embedded java-script?

Thanks,
Don


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


Running embeded Javascript from a Sampler

Posted by Don Dehm <dd...@edgenet.com>.
I am doing some research on the implementation of some tests we need to
create.  We have several *.jsp pages that make use of button evoked
java-script that loads documents (as apposed to using "POST" and "GET").
Can someone provide a pointer to me that would allow the emulation of
the button press, or at least running the embedded java-script?

Thanks,
Don


Re: "Correct" logger

Posted by ms...@apache.org.
The correct way is:

private static Logger log = LoggingManager.getLoggerForClass()

note that in org.apache.jmeter.testelement.property I did make the 
logger in AbstractProperty a protected element - and it was a 
mistake to do so, it should be changed.  But then, all the property 
classes would need these lines added to them.  Gosh, aspects 
would be nice for this!  If only I dared use them.

-Mike

On 18 Aug 2003 at 19:45, Jeremy Arnold wrote:

> Hello,
>     I mostly stayed on the side-lines a little while back when some of 
> you guys were making changes to the logging system.  So now 
I'd like to 
> check: what is the "correct" way to define a logger.  My guess is:
> 
> private static Logger log = LoggingManager.getLoggerForClass( 
);
> 
>     Am I close?  Do we still use 
> Hierarchy.getDefaultHierarchy().getLogerFor("xxx"); in some 
places?
> 
> Jeremy
> http://xirr.com/~jeremy_a
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-
help@jakarta.apache.org
> 




--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

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


Re: "Correct" logger

Posted by ms...@apache.org.
The correct way is:

private static Logger log = LoggingManager.getLoggerForClass()

note that in org.apache.jmeter.testelement.property I did make the 
logger in AbstractProperty a protected element - and it was a 
mistake to do so, it should be changed.  But then, all the property 
classes would need these lines added to them.  Gosh, aspects 
would be nice for this!  If only I dared use them.

-Mike

On 18 Aug 2003 at 19:45, Jeremy Arnold wrote:

> Hello,
>     I mostly stayed on the side-lines a little while back when some of 
> you guys were making changes to the logging system.  So now 
I'd like to 
> check: what is the "correct" way to define a logger.  My guess is:
> 
> private static Logger log = LoggingManager.getLoggerForClass( 
);
> 
>     Am I close?  Do we still use 
> Hierarchy.getDefaultHierarchy().getLogerFor("xxx"); in some 
places?
> 
> Jeremy
> http://xirr.com/~jeremy_a
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-
help@jakarta.apache.org
> 




--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777