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 the system logger #61

Open
clcollins opened this issue Jun 24, 2024 · 0 comments
Open

Log to the system logger #61

clcollins opened this issue Jun 24, 2024 · 0 comments

Comments

@clcollins
Copy link
Owner

SREPD should log to the system logger on any systems it supports, and which have an accessible system logger, eg: the journal for Linux/Systemd. It looks like coreos/go-systemd/journal and even supports Windows, not just Linux & Unix (eg Mac) , supports this pretty easily, but the logging currently in SREPD would need to be adjusted somewhat substantially, particularly if we want to keep the charm logging format.

Done Criteria:

Logging to ~/.config/srepd/debug.log no longer occurs, and logs all end up in the system log (Systemd's journal, or otherewise).

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

No branches or pull requests

1 participant