| Hi, | | I am fairly new to Log4J and I have the following questions. | | By default if I use the ConsoleAppender or any other appender other | than AysncAppender, they are all synchronous. Correct?
Yes. | 1. To use the appender in an aysnc way, I have to extend it from the | AsyncAppender. How would I use this for ConsoleAppender and | JDBCAppender? | Any example would be great. <appender name="ASYNC-FOO" class=org.apache.log4j.AsyncAppender"> <param name="locationInfo" value="false" /> <appender-ref ref="FOO_APPENDER" /> </appender> <appender name="FOO_APPENDER" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ABSOLUTE} - %m%n" /> </layout> </appender> | 2. How does log4J scale, in terms of threading and volume, let's say | currently I have 100 threads that are trying to log messages down the | line I might have 1000 threads trying to log messages, how does log4J | handle this? Any pointers would be great. Log4j is thread-safe. -- Thomas ************************************************************************* Copyright ERA Technology Ltd. 2003. (www.era.co.uk). All rights reserved. The information supplied in this Commercial Communication should be treated in confidence. No liability whatsoever is accepted for any loss or damage suffered as a result of accessing this message or any attachments. ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]