规范log4j日志输出路径,按时间分割
This commit is contained in:
parent
18a11eb91e
commit
72acbbb32f
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-api-rpc-service.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-api-rpc-service.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-api-server.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-api-server.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-cms-admin.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-cms-admin.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-cms-job.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-cms-job.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,21 +1,40 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-cms-rpc-service.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-cms-rpc-service.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
||||
|
||||
#Druid logging configuration
|
||||
log4j.logger.druid.sql=warn,stdout
|
||||
log4j.logger.druid.sql.DataSource=warn,stdout
|
||||
log4j.logger.druid.sql.Connection=warn,stdout
|
||||
log4j.logger.druid.sql.Statement=warn,stdout
|
||||
log4j.logger.druid.sql.ResultSet=warn,stdout
|
||||
log4j.logger.druid.sql=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.DataSource=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.Connection=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.Statement=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.ResultSet=warn,stdout,log,errorlog
|
||||
|
||||
# MyBatis logging configuration
|
||||
log4j.logger.com.zheng.cms.dao.mapper=debug
|
||||
|
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-cms-search.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-cms-search.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-cms-web.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-cms-web.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-demo-web.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-demo-web.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-oss-web.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-oss-web.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-pay-admin.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-pay-admin.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,21 +1,40 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-pay-rpc-service.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-pay-rpc-service.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
||||
|
||||
#Druid logging configuration
|
||||
log4j.logger.druid.sql=warn,stdout
|
||||
log4j.logger.druid.sql.DataSource=warn,stdout
|
||||
log4j.logger.druid.sql.Connection=warn,stdout
|
||||
log4j.logger.druid.sql.Statement=warn,stdout
|
||||
log4j.logger.druid.sql.ResultSet=warn,stdout
|
||||
log4j.logger.druid.sql=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.DataSource=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.Connection=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.Statement=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.ResultSet=warn,stdout,log,errorlog
|
||||
|
||||
# MyBatis logging configuration
|
||||
log4j.logger.com.zheng.pay.dao.mapper=debug
|
||||
|
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-pay-web.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-pay-web.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-ucenter-home.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-ucenter-home.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,21 +1,40 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-upms-rpc-service.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-upms-rpc-service.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
||||
|
||||
#Druid logging configuration
|
||||
log4j.logger.druid.sql=warn,stdout
|
||||
log4j.logger.druid.sql.DataSource=warn,stdout
|
||||
log4j.logger.druid.sql.Connection=warn,stdout
|
||||
log4j.logger.druid.sql.Statement=warn,stdout
|
||||
log4j.logger.druid.sql.ResultSet=warn,stdout
|
||||
log4j.logger.druid.sql=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.DataSource=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.Connection=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.Statement=warn,stdout,log,errorlog
|
||||
log4j.logger.druid.sql.ResultSet=warn,stdout,log,errorlog
|
||||
|
||||
# MyBatis logging configuration
|
||||
log4j.logger.com.zheng.upms.dao.mapper=debug
|
||||
|
|
|
@ -1,11 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-upms-server.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-upms-server.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
|
@ -1,23 +1,30 @@
|
|||
#off/fatal/error/warn/info/debug/all
|
||||
log4j.debug=false
|
||||
log4j.rootLogger=info, stdout
|
||||
log4j.rootLogger=info,stdout,log,errorlog
|
||||
|
||||
# Console output
|
||||
# Console
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target = System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
|
||||
|
||||
### Log ###
|
||||
log4j.appender.log = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.log.File = ../logs/zheng-wechat-mp-admin.log
|
||||
log4j.appender.log.Append = true
|
||||
log4j.appender.log.Threshold = DEBUG
|
||||
log4j.appender.log.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.log.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
### Error ###
|
||||
log4j.appender.errorlog = org.apache.log4j.DailyRollingFileAppender
|
||||
log4j.appender.errorlog.File = ../logs/zheng-wechat-mp-admin.error.log
|
||||
log4j.appender.errorlog.Append = true
|
||||
log4j.appender.errorlog.Threshold = ERROR
|
||||
log4j.appender.errorlog.DatePattern='.'yyyy-MM-dd
|
||||
log4j.appender.errorlog.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.errorlog.layout.ConversionPattern =%-d{yyyy-MM-dd HH:mm:ss} [ %p ] [ %C{1}.java :%L(%M)] %m%n
|
||||
|
||||
#Spring logging configuration
|
||||
log4j.category.org.springframework = warn
|
||||
|
||||
#Druid logging configuration
|
||||
log4j.logger.druid.sql=warn,stdout
|
||||
log4j.logger.druid.sql.DataSource=warn,stdout
|
||||
log4j.logger.druid.sql.Connection=warn,stdout
|
||||
log4j.logger.druid.sql.Statement=warn,stdout
|
||||
log4j.logger.druid.sql.ResultSet=warn,stdout
|
||||
|
||||
# MyBatis logging configuration
|
||||
log4j.logger.com.zheng.qa.dao.mapper=debug
|
||||
#log4j.logger.com.zheng.qa.dao.mapper.UserMapper=debug
|
||||
#log4j.logger.com.zheng.qa.dao.mapper.UserMapper.selectUser=debug
|
Loading…
Reference in New Issue