Hello, I have been learning about the asyncappender. After reading a few articles from the mailing list I have gathered that there will be 1 dispatcher thread for 1 asyncappender. So, if there are 20 asyncappenders there will be 20 dispatcher threads. Can someone please confirm this? I ask because I have done thread dumps and have only seen 1 dispatcher thread regardless of the number of asyncappenders. I have included the config file I am using. My expectation is to see two dispatcher threads in my example.
Douglas WF Acheson <?xml version = "1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration debug = "false" xmlns:log4j = 'http://jakarta.apache.org/log4j/'> <!-- Define the debug log async appender --> <appender name = "debug.async" class = "org.apache.log4j.AsyncAppender"> <param name = "BufferSize" value = "10240"/> <param name = "LocationInfo" value = "true"/> <appender-ref ref = "debug.file"/> </appender> <!-- Define the debug log worker appender --> <appender name = "debug.file" class = "org.apache.log4j.FileAppender"> <param name = "Append" value = "true"/> <param name = "File" value = "debug.log"/> <layout class = "org.apache.log4j.PatternLayout"> <param name = "ConversionPattern" value = "[%-d{MM/dd/yyyy HH:mm:ss.SSS}][%l - %t] %m%n"/> </layout> </appender> <!-- ********************************************************************** --> <!-- Define the error log async appender --> <appender name = "error.async" class = "org.apache.log4j.AsyncAppender"> <param name = "BufferSize" value = "10240"/> <param name = "LocationInfo" value = "true"/> <appender-ref ref = "error.file"/> </appender> <!-- Define the error log worker appender --> <appender name = "error.file" class = "org.apache.log4j.FileAppender"> <param name = "Append" value = "true"/> <param name = "File" value = "error.log"/> <layout class = "org.apache.log4j.PatternLayout"> <param name = "ConversionPattern" value = "[%-d{MM/dd/yyyy}][%l - %t] %m%n"/> </layout> </appender> <!-- ********************************************************************** --> <!-- Define the debug log logger --> <logger name = "debug" additivity = "false"> <appender-ref ref = "debug.file"/> </logger> <!-- Define the error log logger --> <logger name = "error" additivity = "false"> <appender-ref ref = "error.async"/> </logger> <!-- ********************************************************************** --> <root> <level value = "debug"/> <!-- appender-ref ref = "debug.async"/ --> </root> </log4j:configuration> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
