• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error email to system admin

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

I use jboss 5.1 .

I have developed struts2 application. And there are few error pages defined for the application.

What i want to know is , when this application in production if any error occurred (It means if it is landed to any of the error page) , i want to get an email in to my inbox with the error description.

how i can get it done this, Please help me .

Thank you so much.
Emil


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try using the SMTPAppender and direct ERROR log entries to it.
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
Logging in AS 5.1 is done in server/xxx/conf/jboss-logging.xml - add the SMTPAppender to it.
 
Emil dombagolla
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:Try using the SMTPAppender and direct ERROR log entries to it.
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html
Logging in AS 5.1 is done in server/xxx/conf/jboss-logging.xml - add the SMTPAppender to it.




Thank you so much, this helped me lot.

Emil
 
reply
    Bookmark Topic Watch Topic
  • New Topic