Skip to content

Commit 9917ea4

Browse files
nordic-krchnashif
authored andcommitted
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 <[email protected]>
1 parent c6b663e commit 9917ea4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

subsys/logging/Kconfig.formatting

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@ config LOG_IMMEDIATE_CLEAN_OUTPUT
134134

135135
config LOG_BACKEND_SHOW_COLOR
136136
bool "Colors in the backend"
137-
depends on LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \
137+
default y if LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \
138138
|| LOG_BACKEND_SWO || LOG_BACKEND_XTENSA_SIM || SHELL_LOG_BACKEND
139-
default y
140139
help
141140
When enabled selected backend prints errors in red and warning in yellow.
142141

0 commit comments

Comments
 (0)