Skip to content

Commit 1d939ac

Browse files
committed
GH-59: Fix log4j Sample
Resolves #59 Add packages to `Configuration`, change SF version to 5.2.4.B-S.
1 parent d53e44e commit 1d939ac

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ jredis.log
1717
*.ipr
1818
*.iws
1919
.sts4-cache
20+
.factorypath

log4j2/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
<artifactId>spring-boot-starter-log4j2</artifactId>
4141
</dependency>
4242

43+
<dependency>
44+
<groupId>org.springframework</groupId>
45+
<artifactId>spring-jcl</artifactId>
46+
<version>5.2.4.BUILD-SNAPSHOT</version>
47+
</dependency>
48+
4349
<dependency>
4450
<groupId>org.springframework.boot</groupId>
4551
<artifactId>spring-boot-starter-test</artifactId>

log4j2/src/main/resources/log4j2.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Configuration>
2+
<Configuration packages="org.springframework.amqp.rabbit.log4j2">
33
<Appenders>
44
<Console name="STDOUT" target="SYSTEM_OUT">
55
<PatternLayout pattern="%m%n" />

0 commit comments

Comments
 (0)