摘要: Log4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。1. 配置文件Log4J配置文件的基本格式如下: #配置根Logger log4j.rootLog 阅读全文
posted @ 2017-01-02 15:26 孙猴子 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 以下是PatternLayout.class源码的文档介绍: A flexible layout configurable with pattern string. This code is known to have synchronization and other issues which a 阅读全文
posted @ 2017-01-02 13:59 孙猴子 阅读(585) 评论(0) 推荐(0) 编辑