Skip to content

Commit

Permalink
Merge pull request #642 from Onlineberatung/remove-logstash-appender
Browse files Browse the repository at this point in the history
Cleanup: Remove unused
  • Loading branch information
tkuzynow authored Apr 20, 2023
2 parents 1dc0f5a + 919bce4 commit 1227e57
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 264 deletions.

This file was deleted.

38 changes: 0 additions & 38 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
<configuration>

<springProfile name="!testing">
<appender class="ch.qos.logback.core.FileAppender" name="FILE">
<append>true</append>
<encoder>
<pattern>%d{yyyy.MMM.dd HH:mm:ss.SSS} %level - %msg%n</pattern>
</encoder>
<file>log/userservice.log</file>
</appender>
<appender name="logstashcustom" class="de.caritas.cob.userservice.api.helper.LogstashAppender">
<logBufferSize>20</logBufferSize>
<connectionTimeoutMillis>400</connectionTimeoutMillis>
<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<mdc/>
<pattern>
<pattern>
{
"serviceName": "users",
"timestamp": "%date{yyyy-MM-dd'T'HH:mm:ss.SSS'Z',UTC}",
"request": {
"correlationId": "%mdc{CID:-null}",
"timestamp": "%date{yyyy-MM-dd'T'HH:mm:ss.SSS'Z',UTC}"
},
"log": {
"level": "%level",
"levelValue": "#asLong{%relative}",
"logger": "%logger",
"message": "%message",
"thread": "%thread",
"stack": "%replace(%replace(%rEx){'\n','\\\\n'}){'\t','\\\\t'}"
}
}
</pattern>
</pattern>
</providers>
</encoder>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
Expand Down Expand Up @@ -66,8 +30,6 @@
</appender>
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="logstashcustom"/>
<appender-ref ref="FILE"/>
</root>
</springProfile>

Expand Down

This file was deleted.

0 comments on commit 1227e57

Please sign in to comment.