You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Scott Cizarno <sc...@yahoo.com> on 2004/02/03 18:18:22 UTC
Appenders Configuration
Do I need to add my SMTP appender to an AsyncAppender?
It seems to be very slow if i do not. my log4j.xml
file is similar to the below. is this a correct
configuration?
<appender name="async"
class="org.apache.log4j.AsyncAppender">
<appender-ref ref="mail"/>
</appender>
<appender name="mail"
class="org.apache.log4j.net.SMTPAppender">
<param name="foo" value="bar"/>
</appender>
<logger name="my.logger.name" additivity="false">
<level value="debug"/>
<appender-ref ref="async"/>
</logger>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org