WTH - Why can't Home Assistant Keep Last Log?

Why can’t we have a setting for the logger to save the previous’s boot homeassistant.log? I believe home assistant clears this log every core restart or crash.

Someone posted a procedure to get access the the actual journald system, How to get to your log after restart/restore , but it should not be so complicated.

propose something like:

logger:
  keep_previous_logs : X

where X is the number of logs you want to keep. It can default to 0 to preserve old behavior.

Home assistant already does this by default, enabled on all installation methods. You can also adjust this through run arguments if you run Docker or Core installation methods.

1 Like

It keeps the previous one by default, home-assistant.log.1

1 Like

oops. Sorry, now I see it. I had a file before, but it was empty. This will be very helpful.