-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
app/log: on-disk log writing #2713
Conversation
Write debug logs on disk if `--log-output-path` is specified. Log files are rotated automatically once the file size reaches 50MB. Rotated log files will be kept for 7 days - max 10 rotated files will be kept, whatever comes first.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2713 +/- ##
==========================================
- Coverage 53.36% 53.23% -0.13%
==========================================
Files 199 199
Lines 27397 27428 +31
==========================================
- Hits 14621 14602 -19
- Misses 10969 11014 +45
- Partials 1807 1812 +5 ☔ View full report in Codecov by Sentry. |
app/log/config.go
Outdated
Logger: &lumberjack.Logger{ | ||
Filename: u.Path, | ||
|
||
MaxBackups: 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add a const
for MaxBackups field and a godoc for that const
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Write debug logs on disk if `--log-output-path` is specified. Log files are rotated automatically once the file size reaches 50MB. Rotated log files will be kept for 7 days - max 10 rotated files will be kept, whatever comes first. category: feature ticket: #2671
Write debug logs on disk if
--log-output-path
is specified.Log files are rotated automatically once the file size reaches 50MB.
Rotated log files will be kept for 7 days - max 10 rotated files will be kept, whatever comes first.
category: feature
ticket: #2671