1 # Global logging configuration 2 log4j.rootLogger=ERROR, stdout, EMAIL 3 # SqlMap logging configuration... 4 log4j.logger.com.ibatis=DEBUG 5 log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=DEBUG 6 log4j.logger.com.ibatis.sqlmap.engine.cache.CacheModel=DEBUG 7 log4j.logger.com.ibatis.sqlmap=DEBUG 8 log4j.logger.com.ibatis.sqlmap.engine.builder.xml.SqlMapParser=DEBUG 9 log4j.logger.com.ibatis.common.util.StopWatch=DEBUG 10 log4j.logger.java.sql.Connection=DEBUG 11 log4j.logger.java.sql.Statement=DEBUG 12 log4j.logger.java.sql.PreparedStatement=DEBUG 13 log4j.logger.java.sql.ResultSet=DEBUG 14 15 log4j.logger.org.springframework=INFO 16 log4j.logger.com.upmobile=DEBUG 17 # Console output... 18 log4j.appender.stdout=org.apache.log4j.ConsoleAppender 19 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 20 log4j.appender.stdout.layout.ConversionPattern=%-4p [%d{ISO8601}][%t] (%c.%M()line %-4L ) %m%n 21 22 # e-mail appender 23 log4j.appender.EMAIL=com.upmobile.midccore.commons.logger.GMailAppender 24 log4j.appender.EMAIL.Threshold=ERROR 25 log4j.appender.EMAIL.Subject=Error with the application 26 log4j.appender.EMAIL.to=abc@acme.com,xyz@acme.commons 27 log4j.appender.EMAIL.SMTPDebug=true 28 log4j.appender.EMAIL.layout=org.apache.log4j.PatternLayout 29 log4j.appender.EMAIL.layout.ConversionPattern=[%d] [%t] %-5p %c %x - %m%n 30 log4j.appender.EMAIL.BufferSize=1