Send error logs through email using log4j SMTP appender



recently I was reading about Apache log4j appenders. and found log4j SMTPAppender which sends an e-mail when a specific logging event occurs, typically on errors or fatal errors. That time I got idea to write this post to send error logs through email using log4j SMTP appender.

for a developer error logs are very important. and it is very helpful for any developer to deliver error logs directly in their inbox.

So, you can add a simple SMTP appender entry in log4j configuration file and get error logs directly in your inbox.

 

References:

Log4j SMTPAppender

Official log4j Homepage

 

1 comment

1 ping

    • Shrikant on May 9, 2013 at 1:20 AM

    That’s really a cool feature. Thanks for sharing.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: