![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Log4j
文章平均质量分 72
vic78
这个作者很懒,什么都没留下…
展开
-
使用高效的日志工具—Log4J
大家在编程时经常不可避免地要使用到一些日志操作,比如开发阶段的调试信息、运行时的日志记录及审计。调查显示,日志代码占代码总量的4%。通常大家可以简单地使用System.out.println()语句输出日志信息,但是往往会有一些判断,比如: if (someCondition) { System.out.println("some information.");}这些判断造原创 2005-01-10 22:33:00 · 895 阅读 · 0 评论 -
Log Level
Log LevelThis is available log setting is log4j.properties. Just chage "log4j.rootLogger=DEBUG, A1" to one of the following settings.ALL turn on all logging.OFF turn off loggingDEBUG原创 2005-02-22 10:35:00 · 1005 阅读 · 0 评论 -
Sample log4j.prpoerties
# An example log4j configuration file that outputs to System.out. The# output information consists of relative time, log level, thread# name, logger name, nested diagnostic context and the message in转载 2006-03-29 18:08:00 · 1686 阅读 · 0 评论