📄 log4j.properties
字号:
#===== 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -