# For JBoss: Avoid to setup Log4J outside $JBOSS_HOME/server/default/deploy/log4j.xml! # For all other servers: Comment out the Log4J listener in web.xml to activate Log4J. log4j.rootLogger=DEBUG, stdout, logfile log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n #log4j.appender.logfile=org.apache.log4j.RollingFileAppender #log4j.appender.logfile.File=${netgool.root}/WEB-INF/petstore.log #log4j.appender.logfile.MaxFileSize=1024KB #log4j.appender.logfile.MaxBackupIndex=3 log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender log4j.appender.logfile.DatePattern='.'yyyy-MM-dd log4j.appender.logfile.File=../logs/netgool.log log4j.appender.logfile.layout=org.apache.log4j.PatternLayout log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n log4j.logger.org.springframework=info // spring 用debug启用调试 log4j.logger.org.apache=info
相关推荐
java 日志出入log4j配置文件(完整版和精简版) log4j.properties(完整版) log4j.properties(精简版)
Log4j.jar包,和log4j.properties属性文件打包下载.
log4j.properties log4j log4j日志保存到邮件 log4j保存到数据库
log4j.properties配置
log4j.properties配置文件
完美log4j.properties 配置
log4j.properties配置详解
log4j.properties 的使用详解(含log4j.properties)
log4j.properties配置分级别单独打印
一个较实用的log4j.properties <br>使用方法: 在web-inf/lib下加入log4j-1.2.15.jar,然后将包中的log4j.properties放到web-inf/classes/下就可以使用了。 <br>测试方法! <br>见其中的Log4jTest.java.
日志记录工具:Log4j.jar+使用方法+配置文件log4j.properties