📄 log4j.properties
字号:
### Configuration file for log4j. For more details, see log4j's site:
### http://jakarta.apache.org/log4j/
### log4j setup for JXTA by Nelson Minar <nelson@clip2.com>
### Set root category priority and its appender
log4j.rootCategory=ERROR,A2
### Create an appender named A1 to log to console
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.Threshold=WARN
### Create a nice PatternLayout to format messages.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
## the following conversion pattern produces:
## <DEBUG RendezVousImpl> connectToRendezVous
log4j.appender.A1.layout.ConversionPattern=<%p %c{1}> %m\n
### Create an appender named A1 to log to console
log4j.appender.A2=org.apache.log4j.ConsoleAppender
log4j.appender.A2.Threshold=DEBUG
### Create a nice PatternLayout to format messages.
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
## the following conversion pattern produces:
## <DEBUG 12:49:28,123 RendezVousImpl:769> connectToRendezVous
log4j.appender.A2.layout.ConversionPattern=<%p %d{ABSOLUTE} %c{1}:%L> %m\n
### Set up any per-package filtering here.
### Some alternate configurations (commented out)
### Log to a file instead
# log4j.appender.A1=org.apache.log4j.FileAppender
# log4j.appender.A1.File=log4j.out
### Set root category priority to debug
# log4j.rootCategory=DEBUG, A1
### per-package filtering examples:
# log4j.category.net.jxta=WARN
# log4j.category.net.jxta.impl.rendezvous=DEBUG
# log4j.category.net.jxta.impl.discovery=DEBUG
# log4j.category.net.jxta.impl.cm=DEBUG
# log4j.category.net.jxta.impl.resolver=DEBUG
# log4j.category.net.jxta.impl.endpoint.EndpointRouter=DEBUG
# log4j.category.net.jxta.impl.endpoint.EndpointService=DEBUG
# log4j.category.net.jxta.impl.wire=DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -