Logging to file #355

Closed
opened 2025-12-29 01:27:35 +01:00 by adam · 0 comments
Owner

Originally created by @joshuataylor on GitHub (Oct 22, 2022).

Feature request
Now that JSON logging is in, and the code has been generalised for that, logging to file seems like the next logical step. Systemd by default listens stderr and stdout, so it would need to log both in stdout and in the log file.

There should also create a followup issue to configure journald logging, as that would probably also be handy.

Originally created by @joshuataylor on GitHub (Oct 22, 2022). <!-- Headscale is a multinational community across the globe. Our common language is English. Please consider raising the feature request in this language. --> **Feature request** Now that JSON logging is in, and the code has been generalised for that, logging to file seems like the next logical step. Systemd by default listens stderr and stdout, so it would need to log both in stdout and in the log file. There should also create a followup issue to configure [journald logging](https://github.com/rs/zerolog/tree/master/journald), as that would probably also be handy.
adam added the enhancement label 2025-12-29 01:27:35 +01:00
adam closed this issue 2025-12-29 01:27:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#355