Skip to content

Commit

Permalink
[release-2.0] Persist and archive historical logs (#3023)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #3021

/assign JohnNiang

```release-note
持久化并归档历史日志
```
  • Loading branch information
halo-dev-bot authored Dec 21, 2022
1 parent 7adf98d commit 4df3bb0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ halo:
springdoc:
api-docs:
enabled: false

logging:
file:
name: ${halo.work-dir}/logs/halo.log
logback:
rollingpolicy:
max-file-size: 10MB
total-size-cap: 1GB
max-history: 0

0 comments on commit 4df3bb0

Please sign in to comment.