You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Johnson, Clay" <cl...@vignette.com> on 2001/04/05 22:45:10 UTC

RE: Is Catgory object is Singleton ? How can I log messages into a same filefrom different JVMs ?

Yes, it is a singleton, inasmuch as it uses a static member for the default
hierarchy.  

I'm uncertain as to the ramifications in a clustered environment.

> -----Original Message-----
> From: kanagavisu@discoverfinancial.com
> [mailto:kanagavisu@discoverfinancial.com]
> Sent: Thursday, April 05, 2001 3:28 PM
> To: LOG4J Users Mailing List
> Subject: Re: Is Catgory object is Singleton ? How can I log messages
> into a same filefrom different JVMs ?
> 
> 
> 
> Yes Jin,
> I hope so. That's what my question. You know if it is across 
> different JVMs
> in distributed applications
> like EJBs, Servlets and two EJB instances of same type from different
> process try to log to a same
> file, what will happen.
> 
> Many people say we can use JMSAppender, but I don't want to 
> use it. I want
> to use SocketAppender
> for EJB logging. Is it possible for EJBs across different JVMs to log,
> because there is a problem of lack
> of synchronization.
> 
> One more question is I want to know whether category object 
> is singleton or
> not. It looks like singleton.
> I am a new user for log4J, please clarify me. Because if it 
> is singleton,
> it is going to add some more
> problems. We have nearly 5 different applications across different
> Application servers and EJB container.
> So if it is singleton, it is going to add more problems. Isn't.
> 
> Thankyou
> kanagavisu
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org