|
Any class that implements the ‘org.apache.log4j.Appender’ interface can be an appender. The class may or
may not make the ‘void doAppend(LoggingEvent
event)’ and ‘void setErrorHandler(ErrorHandler
eh)’ methods thread safe (e.g. synchronized). However, most
appenders extend the abstract class ‘org.apache.log4j.AppenderSkeleton’ which does make these methods
thread safe. -----Original
Message----- Hi Everyone. Do appenders have to
be written Thread-safe, or does the surrounding Log4J API handle this? Richard Unger **This E-mail and any of its attachments may contain Lincoln National Corporation proprietary information, which is privileged, confidential, or subject to copyright belonging to the Lincoln National Corporation family of companies. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout. Thank You.** |
Title: Appenders Thread Safe?
- Appenders Thread Safe? Unger Richard
- Bauer, Paul-Michael
