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

Customize logging colors #59

Merged
merged 6 commits into from
Oct 12, 2023
Merged

Customize logging colors #59

merged 6 commits into from
Oct 12, 2023

Conversation

TobiWo
Copy link
Owner

@TobiWo TobiWo commented Sep 21, 2023

/release

Summary

This PR adds three new cli flags to customize the logging colors for the duty logs.

In particular this PR adds:

  • flag --log-color-warning
    • modifies the logging color of attestation and proposing duty logs where the duty is due in less than 2 min.
    • and for the sync committee duty log if your validator is in the next sync committee
  • flag --log-color-critical
    • modifies the logging color of attestation and proposing duty logs where the duty is due in less than 1 min.
    • and for the sync committee duty log if your validator is in the current sync committee
  • flag --log-color-proposing
    • modifies the logging color of proposing duty logs if duty is due in more than 2 min.
  • colors should be provided in:
    • RGB format e.g. --log-color-warning 255,255,255 or
    • hex format e.g. --log-color-warning "#FFFFFF"
      • Note: You need to wrap the hex code in quotes or double quotes or use a = between the flag and the value like --log-color-warning=#FFFFFF

@TobiWo TobiWo self-assigned this Sep 21, 2023
@TobiWo TobiWo added the enhancement New feature or request label Sep 21, 2023
@TobiWo TobiWo linked an issue Sep 21, 2023 that may be closed by this pull request
@TobiWo TobiWo force-pushed the feature/customize-logging-colors branch from 2c36ae5 to b0b0efd Compare September 28, 2023 11:00
@TobiWo TobiWo marked this pull request as ready for review September 28, 2023 11:10
@TobiWo TobiWo mentioned this pull request Sep 28, 2023
@TobiWo TobiWo merged commit 1de8890 into main Oct 12, 2023
@TobiWo TobiWo deleted the feature/customize-logging-colors branch October 12, 2023 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to pass color codes for logs
2 participants