[jboss-user] [Installation, Configuration & DEPLOYMENT] - log4j config help
babygodzilla
do-not-reply at jboss.com
Tue Feb 5 14:36:21 EST 2008
i followed instructions here http://www.techienuggets.com/Detail?tx=33 to create configurations such that log4j will send emails containing Error messages to a certain email.
| log4j.appender.Mail=org.apache.log4j.net.SMTPAppender
| log4j.appender.Mail.SMTPHost=smtp.gmail.com
| log4j.appender.Mail.SMTPUsername=xxxxxxx
| log4j.appender.Mail.SMTPPassword=xxxxxxx
| log4j.appender.Mail.To=xxxxxxxx
| log4j.appender.Mail.From=xxxxxx
| log4j.appender.Mail.Subject=Error Messages
| log4j.appender.Mail.layout=org.apache.log4j.PatternLayout
| log4j.appender.Mail.layout.ConversionPattern=%d{ISO8601} %p %C{1} %L - %m%n
| log4j.appender.Mail.threshold=ERROR
I know for sure there are ERROR messages that should be sent, because I log em to a different .log file as well. but so far I haven't seen any emails sent, nor have i seen any errors/exceptions with regard to these settings. how do i test this so i know its working, or what is wrong?
thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126731#4126731
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126731
More information about the jboss-user
mailing list