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: Logging as a systemd service #624

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

feat: Logging as a systemd service #624

wants to merge 3 commits into from

Conversation

rumpelsepp
Copy link
Member

  • chore: Refactor _format_record()
  • feat(log): Add support for logging under systemd
  • !cleanup: Remove unused and confusing GALLIA_LOGLEVEL variable

Tracking the size of the string is not necessary. Just reset the cursor
and truncate at the terminal width. If the line is colored, then restore
the RESET code.
If gallia is run as a systemd service, then set the env variable
`GALLIA_LOGGING_SYSTEMD`. Then timestamps are omitted in log output and
the priority information (info, warning, …) is added to the journal.
@rumpelsepp rumpelsepp added the enhancement New feature or request label Dec 3, 2024
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.

1 participant