On Feb 25, 2014, at 1:25 PM, Randeep <randeep...@gmail.com> wrote: > Hi, > > Is there any way to get exceptions mailed? I have an apache tomcat 6.0.37 > with httpd as front end connected with mod_jk. > > I have 5-6 web applications hosted in my tomcat. So I get a lot of logs. > And the applications are big so tracking each and everything is a little > bit tiring. Is there anyway I can get exceptions mailed? > > We are using log4j logger. Is there anything I can set in log4j.properties > to achive this?
This is not specific to Tomcat. Log4j has an SMTP appender. http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html It’s configured like any other appender. Here’s an example. http://stackoverflow.com/questions/4306212/using-log4j-to-send-email-reports-via-the-smtpappender Dan > > I had gone through some posts but none of them are clear and I wanted to > know which is the best and right way. > > -- > Best Regards, > Randeep > Mob: +919880050349[B'lore] > A little Linux Help > http://www.linuxhelp.in/ > Work profile: > http://in.linkedin.com/in/randeeppr --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org