[JBoss-user] [Beginners Corner] - Re: Sending Mail on Errors with Log4j

2006-04-06 Thread jiwils
"jiwils" wrote : "khoyaraaz" wrote : Take a look at 
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html 
for more information.
  | 
  | The 
http://logging.apache.org/log4j/docs/api/org/apache/log4j/spi/TriggeringEventEvaluator.html
  class has more helpful input too.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Sending Mail on Errors with Log4j

2006-04-06 Thread jiwils
"khoyaraaz" wrote : I am receiving 2 emails though, one for each error.  Anyone 
know how I could get a bunch of errors in the same mail, grouped by time or 
session?

The Log4j SMTPAppender provides much of that functionality by default.

Take a look at 
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppender.html 
for more information.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Sending Mail on Errors with Log4j

2006-04-06 Thread khoyaraaz
So the solution (or what I was missing) was to include the SMTP appender to the 
root category in the lo4j.xml file (at the bottom of the file):

   
  |
  |
  | 
  |
  |   
  |   
  | 
  |

Works now :) .  That was easy, just took forever to figure it out by myself, 
wish these things were documented somewhere. 

I am receiving 2 emails though, one for each error.  Anyone know how I could 
get a bunch of errors in the same mail, grouped by time or session?
Thanks in advance :)

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user