Skip to content

Commit 57f89ee

Browse files
authored
Merge pull request eugenp#5546 from eugenp/move-graylog
move graylog ex
2 parents dd0eefe + 4c3a0d7 commit 57f89ee

6 files changed

Lines changed: 19 additions & 18 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
### Relevant Articles:
22
- [Logging in Spring Boot](http://www.baeldung.com/spring-boot-logging)
3+
- [Logging to Graylog with Spring Boot](https://www.baeldung.com/graylog-with-spring-boot)
4+

‎spring-boot-logging-log4j2/pom.xml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@
3434
<groupId>org.springframework.boot</groupId>
3535
<artifactId>spring-boot-starter-log4j2</artifactId>
3636
</dependency>
37+
38+
<!-- for Graylog demo -->
39+
<dependency>
40+
<!-- forcing spring boot 1.x sing log4j was dropped in spring boot 1.4 and beyond -->
41+
<groupId>org.springframework.boot</groupId>
42+
<artifactId>spring-boot-starter-log4j</artifactId>
43+
<version>1.3.8.RELEASE</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>org.graylog2</groupId>
47+
<artifactId>gelfj</artifactId>
48+
<version>1.1.16</version>
49+
<scope>compile</scope>
50+
</dependency>
3751
</dependencies>
3852

3953
<build>
@@ -56,6 +70,6 @@
5670
</build>
5771

5872
<properties>
59-
73+
<start-class>com.baeldung.springbootlogging.SpringBootLoggingApplication</start-class>
6074
</properties>
6175
</project>

spring-boot/src/main/java/com/baeldung/graylog/GraylogDemoApplication.java renamed to spring-boot-logging-log4j2/src/main/java/com/baeldung/graylog/GraylogDemoApplication.java

File renamed without changes.
File renamed without changes.

‎spring-boot/README.MD‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
3434
- [Introduction to Chaos Monkey](https://www.baeldung.com/spring-boot-chaos-monkey)
3535
- [Spring Component Scanning](https://www.baeldung.com/spring-component-scanning)
3636
- [Load Spring Boot Properties From a JSON File](https://www.baeldung.com/spring-boot-json-properties)
37-
- [Display Auto-Configuration Report in Spring Boot](https://www.baeldung.com/spring-boot-auto-configuration-report)
38-
- [Logging to Graylog with Spring Boot](https://www.baeldung.com/graylog-with-spring-boot)
37+
- [Display Auto-Configuration Report in Spring Boot](https://www.baeldung.com/spring-boot-auto-configuration-report)

‎spring-boot/pom.xml‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,6 @@
143143
<artifactId>chaos-monkey-spring-boot</artifactId>
144144
<version>${chaos.monkey.version}</version>
145145
</dependency>
146-
147-
<!-- for Graylog demo -->
148-
<dependency>
149-
<!-- forcing spring boot 1.x sing log4j was dropped in spring boot 1.4 and beyond -->
150-
<groupId>org.springframework.boot</groupId>
151-
<artifactId>spring-boot-starter-log4j</artifactId>
152-
<version>1.3.8.RELEASE</version>
153-
</dependency>
154-
<dependency>
155-
<groupId>org.graylog2</groupId>
156-
<artifactId>gelfj</artifactId>
157-
<version>1.1.16</version>
158-
<scope>compile</scope>
159-
</dependency>
160146

161147
<dependency>
162148
<groupId>javax.validation</groupId>
@@ -229,7 +215,7 @@
229215

230216
<properties>
231217
<!-- The main class to start by executing java -jar -->
232-
<start-class>org.baeldung.demo.DemoApplication</start-class>
218+
<start-class>com.baeldung.intro.App</start-class>
233219
<tomee-servlet-api.version>8.5.11</tomee-servlet-api.version>
234220
<togglz.version>2.4.1.Final</togglz.version>
235221
<rome.version>1.9.0</rome.version>

0 commit comments

Comments
 (0)