Skip to content

Commit

Permalink
feat: configuration of the default logger with rolling policy to trac…
Browse files Browse the repository at this point in the history
…e server logs in a file (#7)

Signed-off-by: ablandel <[email protected]>
  • Loading branch information
ablandel committed Jun 12, 2024
1 parent bdb8ac3 commit eaddd9a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ bin/
.vscode/

### Mac OS ###
.DS_Store
.DS_Store

*.log
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Add the changes here.

### Added

- Configuration of the default logger with rolling policy to trace server logs in a file

## [1.1.0] - 2024-06-07

### Added
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ spring:
compose:
enabled: false
file: docker-compose.yaml
logging:
file:
name: another-kaomoji.log
logback:
rollingpolicy:
file-name-pattern: another-kaomoji-%d{yyyy-MM-dd}.%i.log
max-file-size: 100KB
max-history: 5

0 comments on commit eaddd9a

Please sign in to comment.