Skip to content

Commit

Permalink
Merge pull request #34 from yvasyliev/dev
Browse files Browse the repository at this point in the history
updated logging config
  • Loading branch information
yvasyliev authored Sep 2, 2023
2 parents c2b156f + 4051b9b commit 61e0884
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ updates:
directory: "/"
schedule:
interval: "daily"
assignees:
- "yvasyliev"
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.yvasyliev</groupId>
<artifactId>telegram-dynamic-profile-photo</artifactId>
<version>3.3.0</version>
<version>3.3.1</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
<RollingFile name="roll-by-time-and-size"
fileName="telegram-deezer-client.log"
filePattern="telegram-deezer-client.%d{MM-dd-yyyy-HH-mm}.%i.log.gz"
fileName="telegram-dynamic-profile-photo.log"
filePattern="telegram-dynamic-profile-photo.%d{MM-dd-yyyy-HH-mm}.%i.log.gz"
ignoreExceptions="false">
<PatternLayout>
<Pattern>%d{yyyy-MM-dd HH:mm:ss} %p %m%n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="25 MB"/>
<SizeBasedTriggeringPolicy size="1 MB"/>
</Policies>
<DefaultRolloverStrategy>
<Delete basePath="" maxDepth="1000000">
<IfFileName glob="telegram-deezer-client.*.log.gz"/>
<IfFileName glob="telegram-dynamic-profile-photo.*.log.gz"/>
<IfLastModified age="30m"/>
</Delete>
</DefaultRolloverStrategy>
Expand Down

0 comments on commit 61e0884

Please sign in to comment.