Skip to content

Commit

Permalink
change fileNamePattern for TimeBasedRollingPolicy to absolute path;
Browse files Browse the repository at this point in the history
fix appname in gateway logback.xml;

Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed May 31, 2021
1 parent 394daeb commit 76d6a65
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion concierge/service/src/main/resources/logback.xml
Expand Up @@ -51,7 +51,7 @@
</filter>
<file>/var/log/ditto/concierge.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>concierge.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<fileNamePattern>/var/log/ditto/concierge.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<!-- Keep 30 days' worth of history capped at 1GB total size -->
<maxHistory>${DITTO_LOGGING_MAX_LOG_FILE_HISTORY_IN_DAYS:-10}</maxHistory>
<totalSizeCap>${DITTO_LOGGING_TOTAL_LOG_FILE_SIZE:-1GB}</totalSizeCap>
Expand Down
2 changes: 1 addition & 1 deletion connectivity/service/src/main/resources/logback.xml
Expand Up @@ -51,7 +51,7 @@
</filter>
<file>/var/log/ditto/connectivity.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>connectivity.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<fileNamePattern>/var/log/ditto/connectivity.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<maxHistory>${DITTO_LOGGING_MAX_LOG_FILE_HISTORY_IN_DAYS:-10}</maxHistory>
<totalSizeCap>${DITTO_LOGGING_TOTAL_LOG_FILE_SIZE:-1GB}</totalSizeCap>
</rollingPolicy>
Expand Down
2 changes: 1 addition & 1 deletion gateway/service/src/main/resources/logback.xml
Expand Up @@ -51,7 +51,7 @@
</filter>
<file>/var/log/ditto/gateway.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>gateway.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<fileNamePattern>/var/log/ditto/gateway.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<!-- Keep 30 days' worth of history capped at 1GB total size -->
<maxHistory>${DITTO_LOGGING_MAX_LOG_FILE_HISTORY_IN_DAYS:-10}</maxHistory>
<totalSizeCap>${DITTO_LOGGING_TOTAL_LOG_FILE_SIZE:-1GB}</totalSizeCap>
Expand Down
2 changes: 1 addition & 1 deletion policies/service/src/main/resources/logback.xml
Expand Up @@ -51,7 +51,7 @@
</filter>
<file>/var/log/ditto/policies.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>policies.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<fileNamePattern>/var/log/ditto/policies.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<!-- Keep 30 days' worth of history capped at 1GB total size -->
<maxHistory>${DITTO_LOGGING_MAX_LOG_FILE_HISTORY_IN_DAYS:-10}</maxHistory>
<totalSizeCap>${DITTO_LOGGING_TOTAL_LOG_FILE_SIZE:-1GB}</totalSizeCap>
Expand Down
2 changes: 1 addition & 1 deletion things/service/src/main/resources/logback.xml
Expand Up @@ -51,7 +51,7 @@
</filter>
<file>/var/log/ditto/things.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>things.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<fileNamePattern>/var/log/ditto/things.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<!-- Keep 30 days' worth of history capped at 1GB total size -->
<maxHistory>${DITTO_LOGGING_MAX_LOG_FILE_HISTORY_IN_DAYS:-10}</maxHistory>
<totalSizeCap>${DITTO_LOGGING_TOTAL_LOG_FILE_SIZE:-1GB}</totalSizeCap>
Expand Down
2 changes: 1 addition & 1 deletion thingsearch/service/src/main/resources/logback.xml
Expand Up @@ -51,7 +51,7 @@
</filter>
<file>/var/log/ditto/thing-search.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>thing-search.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<fileNamePattern>/var/log/ditto/thing-search.log.%d{yyyy-MM-dd}.gz</fileNamePattern>
<!-- Keep 30 days' worth of history capped at 1GB total size -->
<maxHistory>${DITTO_LOGGING_MAX_LOG_FILE_HISTORY_IN_DAYS:-10}</maxHistory>
<totalSizeCap>${DITTO_LOGGING_TOTAL_LOG_FILE_SIZE:-1GB}</totalSizeCap>
Expand Down

0 comments on commit 76d6a65

Please sign in to comment.