Skip to content

Commit 30c96a9

Browse files
xudongzhengnashif
authored andcommitted
logging: fix color for shell log backend
This allows CONFIG_LOG_BACKEND_SHOW_COLOR to be configured when logging to shell. Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com>
1 parent f0bfaa4 commit 30c96a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/logging/Kconfig.formatting

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ config LOG_IMMEDIATE_CLEAN_OUTPUT
135135
config LOG_BACKEND_SHOW_COLOR
136136
bool "Colors in the backend"
137137
depends on LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \
138-
|| LOG_BACKEND_SWO || LOG_BACKEND_XTENSA_SIM
138+
|| LOG_BACKEND_SWO || LOG_BACKEND_XTENSA_SIM || SHELL_LOG_BACKEND
139139
default y
140140
help
141141
When enabled selected backend prints errors in red and warning in yellow.

0 commit comments

Comments
 (0)