Skip to content

Commit

Permalink
http-service: add logback config
Browse files Browse the repository at this point in the history
This is the same as the spring one, but without the rolling file appender.
  • Loading branch information
Adam- committed Jul 20, 2023
1 parent 1cfa13e commit 7c87f63
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions http-service/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/spring.log}"/>
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<encoder>
<pattern>${FILE_LOG_PATTERN}</pattern>
<charset>${FILE_LOG_CHARSET}</charset>
</encoder>
<file>${LOG_FILE}</file>
</appender>
<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
</root>
</configuration>

0 comments on commit 7c87f63

Please sign in to comment.