Quoting Tim Funk <[EMAIL PROTECTED]>: > logging instances should be static to the class. > > // Commons logging example but a log4j equiv should be easy to find > private static Log log = LogFactory.getLog(MyClass.class); >
or private transient Log log = LogFactory.getLog(MyClass.class); Although this would mean a new instance of the log variable for every instance of the class. The static version is the better idea in most cases. Jake > > -Tim > > Antony Paul wrote: > > > Hi, > > I used Log4J and commons logging in an ActionForm which is stored in > the > > session. When I reload the context it is invalidating the session because > it > > is non serializable. Is there any work around for this ?. Or do I have to > > use any other Logger. > > > > --------------------------------------------------------------------- > 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]