Skip to content

Commit

Permalink
Issue 2104: Ensure all the logs are compressed after rollover (praveg…
Browse files Browse the repository at this point in the history
…a#2105)

* Ensures pravega logs are compressed after rollover.

Signed-off-by: shrids <[email protected]>
  • Loading branch information
shrids authored and fpj committed Nov 23, 2017
1 parent 3e29cd4 commit fcdaaa1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controller/src/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>controller_server_%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>controller_server_%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>

<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>5MB</maxFileSize>
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
Expand Down
2 changes: 1 addition & 1 deletion dist/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You may obtain a copy of the License at
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>${log.dir:-.}/${log.name:-pravega}_%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${log.dir:-.}/${log.name:-pravega}_%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>

<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
Expand Down
2 changes: 1 addition & 1 deletion segmentstore/server/host/src/config/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You may obtain a copy of the License at
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>segmentstore_server_%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>segmentstore_server_%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>

<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
Expand Down

0 comments on commit fcdaaa1

Please sign in to comment.