-
Notifications
You must be signed in to change notification settings - Fork 86
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 #308 from DP-3T/feature/versionup-logrelay
Spring version up. Add Logrelay
- Loading branch information
Showing
15 changed files
with
153 additions
and
95 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
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
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
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
58 changes: 58 additions & 0 deletions
58
dpppt-backend-sdk/dpppt-backend-sdk-interops/src/main/resources/local-logback.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,58 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
~ Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch> | ||
~ | ||
~ This Source Code Form is subject to the terms of the Mozilla Public | ||
~ License, v. 2.0. If a copy of the MPL was not distributed with this | ||
~ file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
~ | ||
~ SPDX-License-Identifier: MPL-2.0 | ||
--> | ||
|
||
<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> | ||
<logger name="org.dpppt" level="DEBUG"/> | ||
<root level="INFO"> | ||
<appender-ref ref="console"/> | ||
<appender-ref ref="flatfile"/> | ||
</root> | ||
|
||
</configuration> |
40 changes: 0 additions & 40 deletions
40
dpppt-backend-sdk/dpppt-backend-sdk-interops/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
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
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
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
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
58 changes: 58 additions & 0 deletions
58
dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/resources/local-logback.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,58 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
~ Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch> | ||
~ | ||
~ This Source Code Form is subject to the terms of the Mozilla Public | ||
~ License, v. 2.0. If a copy of the MPL was not distributed with this | ||
~ file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
~ | ||
~ SPDX-License-Identifier: MPL-2.0 | ||
--> | ||
|
||
<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> | ||
<logger name="org.dpppt" level="DEBUG"/> | ||
<root level="INFO"> | ||
<appender-ref ref="console"/> | ||
<appender-ref ref="flatfile"/> | ||
</root> | ||
|
||
</configuration> |
40 changes: 0 additions & 40 deletions
40
dpppt-backend-sdk/dpppt-backend-sdk-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
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