Log
夏天吹过的风
得不到的永远在骚动
展开
-
Log4j输出格式参数一览
Conversion CharacterEffectcUsed to output the category of the logging event. The category conversion specifier can be optionally followed byprecision specifier, that is a decimal constant转载 2015-07-02 14:01:17 · 704 阅读 · 0 评论 -
log4j和commons-logging搭配使用
在classes目录下新建commons-logging.propertiesorg.apache.commons.logging.Log = org.apache.commons.logging.impl.Log4JLoggerorg.apache.commons.logging.LogFactory = org.apache.commons.logging.impl.LogFactory原创 2015-07-02 11:59:11 · 564 阅读 · 0 评论 -
典型的基本log4j配置
log4j.rootLogger = debug, stdout, fileoutlog4j.appender.stdout = org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.layout = org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.Conversion原创 2015-03-26 10:14:29 · 644 阅读 · 0 评论