log4j.properties

简介: log4j.properties

内容如下

### 设置###
log4j.rootCategory = debug,CONSOLE,LOGFILE
### 输出信息到控制抬 ###
log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
### 输出DEBUG 级别以上的日志到=E://logs/error.log ###
log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern = %d(ISO8601) %-6r [%15.15t] %-5p %30.30c %x - %m\n
### 输出ERROR 级别以上的日志到=E://logs/error.log ###
log4j.appender.LOGFILE = org.apache.log4j.FileAppender
log4j.appender.LOGFILE.file = d:\axis.log  #注意这是你自己指定的文件位置
log4j.appender.LOGFILE.Append = true
log4j.appender.LOGFILE.layout = org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern = %d(ISO8601) %-6r [%15.15t] %-5p %30.30c %x - %m\n
相关文章
|
8月前
|
Java
log4j.properties日志配置文件内容
log4j.properties日志配置文件内容
43 0
|
29天前
|
Java 程序员
SpringBoot集成log4j2出现Logback configuration error detected: current ElementPath is
SpringBoot集成log4j2出现Logback configuration error detected: current ElementPath is
35 0
|
XML 移动开发 Java
log4j.properties配置文件详解
log4j.properties配置文件详解
538 0
|
9月前
|
Java
成功解决:ERROR StatusLogger No log4j2 configuration file found.
成功解决:ERROR StatusLogger No log4j2 configuration file found.
springboot之log4j:WARN No appenders could be found for logger
springboot之log4j:WARN No appenders could be found for logger
springboot之log4j:WARN No appenders could be found for logger
SpringCloud项目启动失败 not found config file[log.properties]
SpringCloud项目启动失败 not found config file[log.properties]
162 0
SpringCloud项目启动失败 not found config file[log.properties]
|
XML 移动开发 Java
详解log4j.properties配置
详解log4j.properties配置
|
Java Spring
set Spring log level to debug so that we can learn more from log
set Spring log level to debug so that we can learn more from log
79 0
set Spring log level to debug so that we can learn more from log
|
Java Apache 数据格式
log4j2配置
Log4j2 Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor Table of contents ...
2023 0