logging: formatting: Allow coloring in custom cases

In order to support error and warning message coloring
LOG_BACKEND_SHOW_COLOR must be set. Allow setting it for
customized cases.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2024-11-15 15:38:25 +01:00 committed by Anas Nashif
parent c6b663e50b
commit 9917ea4fe6

View file

@ -134,9 +134,8 @@ config LOG_IMMEDIATE_CLEAN_OUTPUT
config LOG_BACKEND_SHOW_COLOR
bool "Colors in the backend"
depends on LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \
default y if LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \
|| LOG_BACKEND_SWO || LOG_BACKEND_XTENSA_SIM || SHELL_LOG_BACKEND
default y
help
When enabled selected backend prints errors in red and warning in yellow.