On Sun, 28 Oct 2001 21:35, Stefano Mazzocchi wrote:
> > It is much easier to just go
> >
> > getLogger().debug( .... )
> >
> > Far more user/developer friendly.
>
> Totally.
>
> Ah, as a side note: why are you guys always suggesting doing
> getLogger()? couldn't we make the logger variable of AbstractLoggable
> protected so that extending classes already have access to it and avoid
> making method calls to retrieve it? it's both easier and faster, but
> maybe you guys thought of something I'm forgetting, thus my questions.

It is final so it will be inlined. Basically it is to avoid choosing the 
variable name between m_logger and logger. Some people hate m_ ;)

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to