Disable logging to file

With HA logging to stdout under systemd, all the logs are already captured by systemd-journald and the regular log file thus becomes superfluous.

It would be great to have an option to disable logging to file while still honoring all the regular logging settings (component level debug levels).

Related to (but not a dupe of) Export hassio log files to syslog/other?

You can probably achieve this by specifying /dev/null as the log output.

I already tried that (I found Custom log file location just after posting) but I keep getting access denied so I’m guessing HA is expecting a regular file.

I found this old topic because I wanted to achieve the same.
Just symlink /dev/null to home-assistant.log (ln - s /dev/null home-assistant.log)

1 Like