> From: Darren Clarke [mailto:[EMAIL PROTECTED] > Subject: Re: Defining loggers "best" approach? > > But as Mark's loggers are 'static', don't they have the same > semantics WRT serialization as 'instance transient' ?
Yes, except they're now shared by all instances of the class. That may or may not be desirable, depending on the app. If your object is a singleton, it shouldn't matter. (Interestingly, you can specify transient on a static field; java.lang.Class does implement Serializable, but does not provide readObject() or writeObject() methods that might actually do something with static fields.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]