log4j.properties
来自「一个很好的开源项目管理系统源代码」· PROPERTIES 代码 · 共 40 行
PROPERTIES
40 行
#===== Global logging configuration =====#log4j.rootCategory=ERROR, stdout, logfilelog4j.rootCategory=ERROR,stdout#===========console output =================log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout=org.apache.log4j.PatternLayout#log4j.appender.stdout.layout.ConversionPattern=%t %d %p [%c] - <%m>%nlog4j.appender.stdout.layout.ConversionPattern=%t %C{1}.%M - <%m>%n#==================================================================================# To log to a file uncomment the properties below. If this is the case make sure to # to *uncomment* line 2 in this file and *comment out* line 3 in this file.# Change the log file name if you plan to create the file in a certain directory.#===================================================================================#log4j.appender.logfile=org.apache.log4j.RollingFileAppender#log4j.appender.logfile.File=workeffort.log#log4j.appender.logfile.MaxFileSize=512KB#---- Keep three backup files#log4j.appender.logfile.MaxBackupIndex=3#log4j.appender.logfile.layout=org.apache.log4j.PatternLayout#---- Pattern to output : date priority [category] - <message>line_separator#log4j.appender.logfile.layout.ConversionPattern=%t %d %p [%c] - <%m>%n#====================================================================================# The batch job logger. Leave as is.#====================================================================================log4j.category.net.java.workeffort.service.batch=WARN#====================================================================================# Loggers. Uncomment as needed #====================================================================================#log4j.category.net.java.workeffort=DEBUG#log4j.category.org.springframework=DEBUG#log4j.category.com.ibatis=DEBUG#log4j.category.java.sql=DEBUG#log4j.category.com.opensymphony.oscache=DEBUG
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?