use final

-----Original Message-----
From: Thomas Tuft Muller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 11:28 AM
To: LOG4J Users Mailing List
Subject: RE: Categories for Inner Classes


True, but you will waste 4 bytes in every object just to reference the same
Category. That's essentially why you want to use a static reference so every
instance can share the same reference.

--

Thomas


| -----Original Message-----
| From: Craig Newlander [mailto:[EMAIL PROTECTED]]
| Sent: 20 September 2001 17:28
| To: LOG4J Users Mailing List; [EMAIL PROTECTED]
| Subject: RE: Categories for Inner Classes
|
|
| so don't use static - all object will reference the same instance of the
| Category anyways.
|
| -----Original Message-----
| From: Herve AGNOUX [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, September 19, 2001 2:47 AM
| To: LOG4J Users Mailing List
| Subject: Re: Categories for Inner Classes
|
|
| Le 17 Sep 01, Stephen Levinson a écrit :
|
| >
| >  If I have an inner class I'd like to be able to set a category with
| > ITS OWN NAME... but I can't use a STATIC in the inner class.
| >
|
| I use log4j.category.com.xx.zz.Clazz$Inner=INFO
|
| '$' is the separator between class and inner.
|
|
| --
| Sur le Web, tout de suite.
| Herve AGNOUX - diaam informatique
| http://www.diaam-informatique.com
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|



*************************************************************************
Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved.
Confidential. No liability whatsoever is accepted for any loss or damage
suffered as a result of accessing this message or any attachments.

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



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

Reply via email to