Skip to content

Commit

Permalink
Fix log file names for Eureka and Spring Boot Admin
Browse files Browse the repository at this point in the history
Closes gh-17
  • Loading branch information
vanam authored and jonatan-ivanov committed Jul 15, 2024
1 parent f6ca3b5 commit 79969fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eureka/src/main/resources/logback-access.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<jmxConfigurator />
<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
<property scope="local" name="accessLogPattern" value="%date{yyyy-MM-dd HH:mm:ss.SSS} traceid=&quot;%i{x-b3-traceid}&quot; spanid=&quot;%i{x-b3-spanid}&quot; parentspanid=&quot;%i{x-b3-parentspanid}&quot; method=&quot;%m&quot; url=&quot;%U&quot; query=&quot;%q&quot; protocol=&quot;%H&quot; statusCode=&quot;%s&quot; duration=&quot;%D&quot; bytesSent=&quot;%b&quot; remoteIp=&quot;%a&quot; remoteHost=&quot;%h&quot; localIp=&quot;%A&quot; localServer=&quot;%v&quot; localPort=&quot;%localPort&quot; userAgent=&quot;%i{User-Agent}&quot;" />
<property scope="local" name="fileName" value="${spring.application.home:-.}/logs/water-service.access.log" />
<property scope="local" name="fileName" value="${spring.application.home:-.}/logs/eureka.access.log" />

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
Expand Down
2 changes: 1 addition & 1 deletion eureka/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<jmxConfigurator />
<include resource="org/springframework/boot/logging/logback/base.xml" />
<property scope="local" name="payloadFileName" value="${spring.application.home:-.}/logs/water-service.payload.log" />
<property scope="local" name="payloadFileName" value="${spring.application.home:-.}/logs/eureka.payload.log" />

<appender name="PAYLOAD_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-admin/src/main/resources/logback-access.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<jmxConfigurator />
<statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
<property scope="local" name="accessLogPattern" value="%date{yyyy-MM-dd HH:mm:ss.SSS} traceid=&quot;%i{x-b3-traceid}&quot; spanid=&quot;%i{x-b3-spanid}&quot; parentspanid=&quot;%i{x-b3-parentspanid}&quot; method=&quot;%m&quot; url=&quot;%U&quot; query=&quot;%q&quot; protocol=&quot;%H&quot; statusCode=&quot;%s&quot; duration=&quot;%D&quot; bytesSent=&quot;%b&quot; remoteIp=&quot;%a&quot; remoteHost=&quot;%h&quot; localIp=&quot;%A&quot; localServer=&quot;%v&quot; localPort=&quot;%localPort&quot; userAgent=&quot;%i{User-Agent}&quot;" />
<property scope="local" name="fileName" value="${spring.application.home:-.}/logs/water-service.access.log" />
<property scope="local" name="fileName" value="${spring.application.home:-.}/logs/sprint-boot-admin.access.log" />

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-admin/src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<jmxConfigurator />
<include resource="org/springframework/boot/logging/logback/base.xml" />
<property scope="local" name="payloadFileName" value="${spring.application.home:-.}/logs/water-service.payload.log" />
<property scope="local" name="payloadFileName" value="${spring.application.home:-.}/logs/sprint-boot-admin.payload.log" />

<appender name="PAYLOAD_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder>
Expand Down

0 comments on commit 79969fd

Please sign in to comment.