Are you not trying to use standard logging tools like log4j? Log4j has options to make logging asynchronous, so you really don't have to worry about performance upfront. BTW, you can use singletons or static methods to achieve your logging, but you may also want to include the information about the class from which you are logging in the log messages. Depending on what you use, there are more than one way to achieve this.
-karthik.
Murali Mohan wrote:
Hi, I think Singleton keep the clients in Queue. Is it a good practice????
thanks, Murali
CharanKumar wrote:
I suggest u to continue to use Singleton rather than Factory pattern. You just need to use the interface of singleton and is written into Log files... Why do u want to create many objects for logging. I strongly suggest that you go ahead with Singleton pattern...
Other members can debate on this...
-Charan
----- Original Message ----- From: "Murali Mohan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2003 11:14 AM Subject: Logger singleton or abstractpattern method
Hi I am using Singleton Pattern for Logger object.===========================================================================
is it better or using Factory for Logger???????? If I use factory it creats somany objects.
Thanks, Murali
To unsubscribe, send email to [EMAIL PROTECTED] and include in thebody
of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".