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

log to journal #847

Open
lnussel opened this issue Nov 15, 2023 · 1 comment
Open

log to journal #847

lnussel opened this issue Nov 15, 2023 · 1 comment

Comments

@lnussel
Copy link
Member

lnussel commented Nov 15, 2023

snapper uses it's own log file in /var/log/snapper.log. Nowadays system components are expected to log to the journal. That's not only more convenient to query logs of individual services but also allows to turn off logging to disk on systems where write operations must be limited.
At the same time the default log level should probably be reduced from milestone to warning.

Can be done via either the native api such as sd_journal_print or by just writing to a file descriptor

@lnussel
Copy link
Member Author

lnussel commented Jan 24, 2024

while investigating #866 having all info in the journal would have been convenient indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants