?? log4j.properties
字號:
# A log4j properties file suitable for replacing the# default JBoss ConsoleLogging & FileLogging mbeans.log4j.rootCategory=DEBUG, Default, Console### The server.log file appenderlog4j.appender.Default=org.apache.log4j.RollingFileAppenderlog4j.appender.Default.File=../log/server.loglog4j.appender.Default.MaxFileSize=500KBlog4j.appender.Default.MaxBackupIndex=1log4j.appender.Default.layout=org.apache.log4j.PatternLayout# Use the default JBoss formatlog4j.appender.Default.layout.ConversionPattern=[%d{ABSOLUTE},%c{1}] %m%n# Truncate if it aleady exists.log4j.appender.Default.Append=false#Example of turning off logging for a category. Uncomment to turn off.#log4j.category.DefaultDS=FATAL### The console appenderlog4j.appender.Console=org.jboss.logging.log4j.ConsoleAppenderlog4j.appender.Console.Threshold=INFOlog4j.appender.Console.layout=org.apache.log4j.PatternLayoutlog4j.appender.Console.layout.ConversionPattern=[%p,%c{1}] %m%n### The example log4j.appender.mylog=org.apache.log4j.FileAppenderlog4j.appender.mylog.File=../log/jca.loglog4j.appender.mylog.layout=org.apache.log4j.PatternLayoutlog4j.appender.mylog.layout.ConversionPattern=[%c{1}] %m%nlog4j.appender.mylog.Append=falselog4j.category.org.jboss.book.jca=DEBUG, mylog
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -