通用log4j配置

来源:互联网 发布:电脑cmd网络命令大全 编辑:程序博客网 时间:2024/05/06 04:51
/**## Log4J Settings for log4j 1.2.x (via jakarta-commons-logging)## The five logging levels used by Log are (in order):##   1. DEBUG (the least serious)#   2. INFO#   3. WARN#   4. ERROR#   5. FATAL (the most serious)# Set root logger level to WARN and append to stdoutlog4j.rootLogger=DEBUG, stdoutlog4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target=System.outlog4j.appender.stdout.layout=org.apache.log4j.PatternLayout# Pattern to output the caller's file name and line number.log4j.appender.stdout.layout.ConversionPattern=%d %5p (%c:%L) - %m%n# Print only messages of level ERROR or above in the package noModule.log4j.logger.noModule=FATAL# OpenSymphony Stufflog4j.logger.freemarker=INFOlog4j.logger.com.opensymphony=DEBUGlog4j.logger.com.opensymphony.xwork2.ognl=ERRORlog4j.logger.org.apache.struts2.threshold=INFOlog4j.logger.org.apache.struts2.components=DEBUGlog4j.logger.org.apache.struts2.dispatcher=DEBUGlog4j.logger.org.apache.struts2.convention=INFOlog4j.logger.java.sql.Statement=DEBUGlog4j.logger.java.sql.Connection=DEBUGlog4j.logger.java.sql.PreparedStatement=DEBUG#represent blow package classLog's levellog4j.logger.org.apache.commons.dbcp.dataSource=DEBUG# Spring Stufflog4j.logger.org.springframework=DEBUG*/

原创粉丝点击