mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-04 08:53:42 +00:00
Instead log only to the console and let daemon wrapper (systemd in Debian) take the logs from the console and log them to system log. There are many advantages for logging to system log instead of handling files on our own: - No need to handle log file rotation. This can be configured in many ways and we don't have to support that. System's log daemon handles this. Closes #1353. - Remaining system logs such as sudo and audit logs can be along with FreedomBox logs for better debugging. - It is possible to do remote logging based on system logger. - It is possible to make the logs tamper resistant based on system logger configuration. Since timestamp is automatically logged by system log daemon, remove timestamps from log format. When running on console, timestamps are not very useful. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>