log4j.rootLogger = debug,Console,File

log4j.appender.Console = org.apache.log4j.ConsoleAppender
log4j.appender.Console.Target = System.out

log4j.appender.Console.layout = org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern = %5p %d %C: %m%n


log4j.appender.File = org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=C:/logs/SSMDemo.html
log4j.appender.File.Encoding=UTF-8

log4j.appender.File.Threshold = INFO
log4j.appender.File.layout = org.apache.log4j.HTMLLayout
log4j.appender.File.layout.ConversionPattern =%d{ABSOLUTE} %5p %c{1}\:%L - %m%n

log4j.logger.com.opensymphony=ERROR
log4j.logger.org.springframework=ERROR

log4j.logger.org.apache=INFO
log4j.logger.java.sql.Connection=INFO
log4j.logger.java.sql.PreparedStatement=INFO
log4j.logger.java.sql.ResultSet=INFO
log4j.logger.java.sql.Statement=INFO