Log4j includes an SMTP appender that can be used to send logging messages via email. As of log4j 1.2.16, this built-in appender has the ability to send messages via Gmail. Here is an example log4j configuration that uses Gmail to send logged messages: log4j.rootLogger=DEBUG, gmail log4j.appender.gmail=org.ap... log4j.appender.gmail.SMTPPr... log4j.appender.gmail.SMTPUs... log4j.appender.gmail.SMTPPa... log4j.appender.gmail.SMTPHo...