May 08

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.



Log4j SMTPAppender

Official log4j Homepage


1 comment

  1. Shrikant

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

Leave a Reply

%d bloggers like this: