As soon as I uncomment "<appender-ref ref="mail"/>" in the example given
below, log4j is no longer picked up (by commons-logging). Is there anything
wrong with the configuration? There is no error message or warning!
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm} %c%n
%p: %m%n"/>
</layout>
</appender>
<appender name="mail" class="org.apache.log4j.net.SMTPAppender">
<param name="BufferSize" value="1"/>
<param name="SMTPHost" value="mail..."/>
<param name="From" value="[EMAIL PROTECTED]"/>
<param name="To" value="[EMAIL PROTECTED]"/>
<param name="Subject" value="[LOG] ..."/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm} %c%n
%p: %m%n"/>
</layout>
</appender>
<logger name="org...">
<level value="debug"/>
</logger>
<root>
<priority value ="warn"/>
<appender-ref ref="console"/>
<!-- <appender-ref ref="mail"/> -->
</root>
</log4j:configuration>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]