[prev in list] [next in list] [prev in thread] [next in thread]
List: jmeter-dev
Subject: Re: "Correct" logger
From: mstover1 () apache ! org
Date: 2003-08-18 20:06:54
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic