This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from admin-ch/feature/sleuth-logging
Added Sleuth logging
- Loading branch information
Showing
6 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
**/*.log | ||
**/*.log.* | ||
**/.project | ||
**/.classpath | ||
**/.settings |
Binary file removed
BIN
-267 KB
...n/ch-covidcertificate-backend-transformation-ws/lib/CovidCertificate-SDK-Kotlin-1.1.0.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...ation/ch-covidcertificate-backend-transformation-ws/src/main/resources/logback-spring.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/> | ||
|
||
<property resource="application.properties"/> | ||
<springProperty scope="context" name="springAppName" source="spring.application.name"/> | ||
<property name="LOG_FILE" value="${springAppName}"/> | ||
|
||
<!-- You can override this to have a custom pattern --> | ||
<!-- Make sure not to remove LOG_LEVEL_PATTERN, as it's needed by Sleuth --> | ||
<property name="CONSOLE_LOG_PATTERN" | ||
value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/> | ||
|
||
|
||
<!-- Appender to log to console --> | ||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender"> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<!-- Minimum logging level to be presented in the console logs--> | ||
<level>DEBUG</level> | ||
</filter> | ||
<encoder> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
<charset>utf8</charset> | ||
</encoder> | ||
</appender> | ||
|
||
<!-- Appender to log to file --> | ||
<appender name="flatfile" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>${LOG_FILE}.log</file> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
<fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.gz</fileNamePattern> | ||
<maxHistory>7</maxHistory> | ||
</rollingPolicy> | ||
<encoder> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
<charset>utf8</charset> | ||
</encoder> | ||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | ||
<MaxFileSize>512KB</MaxFileSize> | ||
</triggeringPolicy> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="console"/> | ||
<appender-ref ref="flatfile"/> | ||
</root> | ||
|
||
</configuration> |
40 changes: 0 additions & 40 deletions
40
...ansformation/ch-covidcertificate-backend-transformation-ws/src/main/resources/logback.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters