Skip to content

Commit

Permalink
Merge pull request #4 from solacese/R1.1.4
Browse files Browse the repository at this point in the history
R1.1.4
  • Loading branch information
RobertOttesen authored Jan 25, 2021
2 parents e8e944a + 052ae75 commit a4f9712
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.solace.swim</groupId>
<artifactId>swim-feed-handler</artifactId>
<version>1.1.3</version>
<version>1.1.4</version>
<name>swim-feed-handler</name>
<description>SWIM Feed Handler Spring Boot Application</description>

Expand Down
9 changes: 5 additions & 4 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
<file>${basePath}/system-${spring.profiles.active}.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>log/archived/system-%d{yyyy-MM-dd}.log.%i</fileNamePattern>
<fileNamePattern>${basePath}/archived/system-${spring.profiles.active}-%d{yyyy-MM-dd-HH}.log.%i</fileNamePattern>
<!-- each archived file, size max 10MB -->
<maxFileSize>10MB</maxFileSize>
<!-- total size of all archive files, if total size > 1GB,
it will delete old archived file -->
<totalSizeCap>1GB</totalSizeCap>
<!-- 60 days to keep -->
<maxHistory>10</maxHistory>
<!-- Hours to keep -->
<maxHistory>1</maxHistory>
<cleanHistoryOnStart>true</cleanHistoryOnStart>
</rollingPolicy>

<encoder>
Expand Down Expand Up @@ -43,7 +44,7 @@
<appender-ref ref="hourlyRolloverLogger" />
</logger>

<root level="info">
<root level="INFO">
<appender-ref ref="console"/>
<appender-ref ref="eventLogger"/>
</root>
Expand Down

0 comments on commit a4f9712

Please sign in to comment.