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:
parent
c6b663e50b
commit
9917ea4fe6
1 changed files with 1 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue