zno2

随笔分类 -  Apache log4j

PatternLayout %d %c %M %L %p %X{context} ...
摘要:https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html Conversion CharacterEffect c Used to output the category of the loggi 阅读全文

posted @ 2023-06-06 13:14 zno2 阅读(75) 评论(0) 推荐(0)

log4j 1.x
摘要:https://logging.apache.org/log4j/1.2/manual.html 1. log4j.dtd 在哪里? log4j.jar 包中 org.apache.log4j.xml 下 <?xml version="1.0" encoding="UTF-8" ?> <!-- Li 阅读全文

posted @ 2023-06-06 13:14 zno2 阅读(42) 评论(0) 推荐(0)

log4j.xml example
摘要:<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration debug="true" xmlns:log4j='http://jakart 阅读全文

posted @ 2023-06-01 17:10 zno2 阅读(28) 评论(0) 推荐(0)

log4j.properties example
摘要:google search log4j.properties example Output to Console Output to File Output to Console and File 阅读全文

posted @ 2016-10-09 16:22 zno2 阅读(163) 评论(0) 推荐(0)

怎么定义 logger
摘要:随便打开一个 spring 的 源文件,比如 PathMatchingResourcePatternResolver.class 里面是这样定义logger 的 这样的好处是: 一个这个类只有一个logger,所有这个类的实例均使用这个logger ,这个logger不会产生被二次赋值之类的低效操作 阅读全文

posted @ 2016-10-09 16:22 zno2 阅读(184) 评论(0) 推荐(0)

Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.
摘要:查看日志 查看Java Build Path - Maven Dependencies C:\Documents and Settings\Administrator\.m2\repository\org\slf4j\slf4j-log4j12\1.7.2\slf4j-log4j12-1.7.2.j 阅读全文

posted @ 2016-08-06 07:46 zno2 阅读(491) 评论(0) 推荐(0)

导航