You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
808 B
24 lines
808 B
2 years ago
|
log4j.rootLogger=INFO, stdout, logfile
|
||
|
|
||
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||
|
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
|
||
|
|
||
|
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
|
||
|
log4j.appender.logfile.MaxFileSize=512KB
|
||
|
log4j.appender.logfile.MaxBackupIndex=3
|
||
|
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
|
||
|
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
|
||
|
log4j.logger.java.sql.ResultSet=INFO
|
||
|
|
||
|
log4j.logger.org.apache=INFO
|
||
|
log4j.logger.java.sql.Connection=DEBUG
|
||
|
log4j.logger.java.sql.Statement=DEBUG
|
||
|
log4j.logger.java.sql.PreparedStatement=DEBUG
|
||
|
log4j.logger.com.dao=DEBUG
|
||
|
|
||
|
#log4j 文件的作用是在控制台输出程序启动、SQL语句等程序运行时关键代码
|
||
|
|
||
|
|
||
|
|