log4j.rootLogger=debug, stdout, R
log4j.appender.stdout
=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L)
- %m%n
log4j.appender.R
=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=example.log
log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
# Print only messages of level WARN or above in the package com.foo.
log4j.logger.com.foo=WARN
分享到:
相关推荐
java 日志出入log4j配置文件(完整版和精简版) log4j.properties(完整版) log4j.properties(精简版)
Log4j.jar包,和log4j.properties属性文件打包下载.
log4j.properties log4j log4j日志保存到邮件 log4j保存到数据库
ssm框架整合,详细记录日志的配置文件,log4j.properties。 ssm框架整合,详细记录日志的配置文件,log4j.properties。
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.properties log4j经典配置,不看是你的损失
日志记录工具:Log4j.jar+使用方法+配置文件log4j.properties