[jboss-user] [JBoss Portal Users] - Writing a log4j email service

Fuchs do-not-reply at jboss.com
Sat Oct 31 12:31:05 EDT 2009

i am using the jboss-portal-2.7.2 bundle and i like to know, how i could write an email service, to be informed, if the server throws any ERRORs. 

what i know is that i have to edit the jboss-log4j.xml:
   <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
  |      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |      <param name="Threshold" value="ERROR"/>
  |      <param name="To" value="myemail at gmail.com"/>
  |      <param name="From" value="nobody at myhost.domain.com"/>
  |      <param name="Subject" value="JBoss Sever Errors"/>
  |      <param name="SMTPHost" value="localhost"/>
  |      <param name="BufferSize" value="10"/>
  |      <layout class="org.apache.log4j.PatternLayout">
  |        <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
  |      </layout>
  |    </appender>
  |    <root>
  |       <appender-ref ref="CONSOLE"/>
  |       <appender-ref ref="FILE"/>
  |       <appender-ref ref="SMTP"/>
  |    </root>

do i have to edit the jboss-service.xml in the jboss-portal.sar also?
have i something missed?

Thanks  for helping!

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263314#4263314

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263314

More information about the jboss-user mailing list