Skip to content
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

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

GFX9
Copy link
Contributor

@GFX9 GFX9 commented Mar 11, 2024

  • 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

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 63.33333% with 22 lines in your changes missing coverage. Please review.

Project coverage is 75.76%. Comparing base (e35b35a) to head (57f714f).
Report is 115 commits behind head on master.

Files Patch % Lines
crates/xline/src/utils/trace.rs 0.00% 17 Missing ⚠️
crates/utils/src/parser.rs 86.48% 4 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

@GFX9 GFX9 force-pushed the dev branch 4 times, most recently from 7cb4b17 to 1a4e49c Compare March 19, 2024 02:49
@GFX9 GFX9 force-pushed the dev branch 2 times, most recently from 8ed8c85 to ba0a6bb Compare March 27, 2024 01:12
@GFX9 GFX9 force-pushed the dev branch 2 times, most recently from ddbd088 to 9a592d1 Compare April 2, 2024 16:00
@GFX9 GFX9 force-pushed the dev branch 2 times, most recently from e4c7cd7 to 4aa940d Compare April 8, 2024 02:42
Phoenix500526
Phoenix500526 previously approved these changes Apr 12, 2024
Copy link
Collaborator

@Phoenix500526 Phoenix500526 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

crates/xline/src/utils/args.rs Outdated Show resolved Hide resolved
scripts/quick_start.sh Outdated Show resolved Hide resolved
scripts/quick_start.sh Outdated Show resolved Hide resolved
Copy link

mergify bot commented Apr 18, 2024

@GFX9 Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft April 18, 2024 06:52
@mergify mergify bot requested a review from a team April 19, 2024 04:36
@Phoenix500526
Copy link
Collaborator

@Mergifyio rebase

Copy link

mergify bot commented Apr 25, 2024

rebase

✅ Branch has been successfully rebased

@Phoenix500526 Phoenix500526 marked this pull request as ready for review April 25, 2024 15:05
Copy link

mergify bot commented Apr 29, 2024

@GFX9 Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft April 29, 2024 06:18
@Phoenix500526 Phoenix500526 marked this pull request as ready for review April 30, 2024 01:59
@mergify mergify bot marked this pull request as draft April 30, 2024 02:00
@Phoenix500526 Phoenix500526 force-pushed the dev branch 4 times, most recently from 9da6fcf to 1909c14 Compare May 27, 2024 15:22
Copy link

mergify bot commented May 27, 2024

@GFX9 Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft May 27, 2024 15:24
@mergify mergify bot added the CI:fail CI has failed label May 27, 2024
@mergify mergify bot marked this pull request as ready for review May 27, 2024 15:40
@mergify mergify bot removed the CI:fail CI has failed label May 27, 2024
@Phoenix500526 Phoenix500526 requested review from bsbds and rogercloud May 28, 2024 02:15
@Phoenix500526 Phoenix500526 self-assigned this May 28, 2024
crates/utils/src/parser.rs Outdated Show resolved Hide resolved
crates/utils/src/parser.rs Outdated Show resolved Hide resolved
crates/xline/src/utils/trace.rs Outdated Show resolved Hide resolved
scripts/common.sh Outdated Show resolved Hide resolved
@mergify mergify bot requested a review from a team June 7, 2024 02:27
Copy link

mergify bot commented Jun 7, 2024

@GFX9 Convert your pr to draft since CI failed

@mergify mergify bot marked this pull request as draft June 7, 2024 07:32
@mergify mergify bot added the CI:fail CI has failed label Jun 7, 2024
@mergify mergify bot marked this pull request as ready for review June 7, 2024 07:59
@mergify mergify bot removed the CI:fail CI has failed label Jun 7, 2024
Copy link

mergify bot commented Jun 13, 2024

@GFX9 Your PR is in conflict and cannot be merged.

@mergify mergify bot requested a review from a team June 13, 2024 03:02
@mergify mergify bot requested a review from a team June 13, 2024 03:54
@Phoenix500526 Phoenix500526 merged commit 9d22323 into xline-kv:master Jun 13, 2024
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Add an command line option to enable stdout log ouput
5 participants