I extend a base form which gets the Log as
LogFactory.getLog(this.getClass());
So that no need to define and get a Log instance in subclass. Is there any
way so that I can follow this pattern.

rgds
Antony Paul

----- Original Message -----
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 4:38 PM
Subject: Re: Serializable Logging implementation


> 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);
>
>
> -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]

Reply via email to