No, there is no need to synchronize the log method before calling any logger that uses this appender.
This is because this appender extends the AppenderSkeleton class. The AppenderSkeleton class is the base class for many of the Appenders (Console, JDBC, etc) and implements the <code>doAppend(LoggingEvent)</code> method wich is the method called by the Logger to report LoggingEvents. This method is synchronized and calls the <code>append(LoggingEvent)</code> that is an abstract method that must be implemented in subclases... --- Samuel Cheung <[EMAIL PROTECTED]> wrote: > Hi, > > Is SocketAppender in log4j thread safe? If I have > multiple threads log to > the same SocketAppender, do I need to synchronize > that the log method? > > And does SocketAppender have any internal buffer? > Will every log() call > result in a network transmission? Or SocketAppender > will buffer all the logs > until it reaches certain limit before it sends out > the log thru the network > transmission. > > Thank you for any information. > Sam > > -- > To unsubscribe, e-mail: > <mailto:log4j-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:log4j-user-help@;jakarta.apache.org> > __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: <mailto:log4j-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:log4j-user-help@;jakarta.apache.org>