log4j SMTPAppender only sends ERRORs

B

brian.dick

I am setting the Threshold to INFO, but I only get messages of level
ERROR. What am I doing wrong?

<appender name="SMTPNOTIFY" class="org.apache.log4j.net.SMTPAppender">
<param name="Threshold" value="INFO"/>
<param name="To" value="xxxx"/>
<param name="From" value="xxxx"/>
<param name="Subject" value="xxxx"/>
<param name="SMTPHost" value="xxxx" />
<param name="BufferSize" value="1" />

<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="FCM_NOTIFY:" />
<param name="AcceptOnMatch" value="True" />
</filter>

<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-6d{ISO8601} %-5p [%t]
%c{2} - %m%n"/>
</layout>
</appender>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top