Add option to Core settings to enable duplicated logs #6400
+48
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed change
Introduce new option
duplicate_log_fileto HA Core configuration that will set an environment variableHA_DUPLICATE_LOG_FILE=1for the Core container if enabled. This will serve as a flag for Core to enable the legacy log file, along the standard logging which is handled by Systemd Journal.Type of change
Additional information
duplicate_log_fileCore option developers.home-assistant#2888--duplicate-log-fileCore option cli#618Checklist
ruff format supervisor tests)If API endpoints or add-on configuration are added/changed: