log4j.properties
来自「jxme的一些相关程序,主要是手机上程序开发以及手机和计算机通信的一些程序资料,」· PROPERTIES 代码 · 共 52 行
PROPERTIES
52 行
### 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 + =
减小字号Ctrl + -
显示快捷键?