maven依赖:
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
核心文件配置
<settings>
<setting name="logImpl" value="log4j"/>
</settings>
log4j配置:
log4j.rootLogger=DEBUG,stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
标签:layout,stdout,log4j,apache,org,appender
From: https://www.cnblogs.com/lin513/p/17084079.html