使用log4j將錯誤級別以上日誌輸出到指定文件,只需在log4j日誌配置文件中加入:
log4j.appender.txtout.Threshold=ERROR
或者
<param name="Threshold" value="ERROR"/>
使用log4j將錯誤級別以上日誌輸出到指定文件,只需在log4j日誌配置文件中加入:
log4j.appender.txtout.Threshold=ERROR
或者
<param name="Threshold" value="ERROR"/>