-
Notifications
You must be signed in to change notification settings - Fork 76
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
feat: support redirecting the logs to the terminal #686
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #686 +/- ##
==========================================
+ Coverage 75.55% 75.76% +0.20%
==========================================
Files 180 187 +7
Lines 26938 27824 +886
Branches 26938 27824 +886
==========================================
+ Hits 20353 21080 +727
- Misses 5366 5451 +85
- Partials 1219 1293 +74 ☔ View full report in Codecov by Sentry. |
7cb4b17
to
1a4e49c
Compare
8ed8c85
to
ba0a6bb
Compare
ddbd088
to
9a592d1
Compare
e4c7cd7
to
4aa940d
Compare
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.
LGTM
@GFX9 Convert your pr to draft since CI failed |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
@GFX9 Convert your pr to draft since CI failed |
9da6fcf
to
1909c14
Compare
@GFX9 Convert your pr to draft since CI failed |
@GFX9 Convert your pr to draft since CI failed |
@GFX9 Your PR is in conflict and cannot be merged. |
Signed-off-by: GFX9 <[email protected]>
what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?)
-> Fixes [Feature]: Add an command line option to enable stdout log ouput #670
-> Currently, Xline does not support redirecting the logs to the terminal. It outputs to a specified log file through
--log-file
in command line. If the user does not specify this parameter, the file path/var/log/xline
is created by default.what changes does this pull request make?
-> Checks whether the user specifies
--log-file
. If not, output the logs to the terminal and ignore--log-rotate
if provided.are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)
-> No