1、环境的准备jarlog4j-1.2.15.jar(版本低于log4j-1.2.14.jar不支持SMTP认证)mail.jaractivation.jar
3、设置系统的日志输出格式和日志级别
5、测试log日志时候可以正常发送