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.