zephyr/tests/subsys/logging/log_output/Kconfig
Daniel Leung 060538ee28 logging: fix color being shown even if disabled
If CONFIG_LOG_BACKEND_SHOW_COLOR is disabled, error and warning
lines are still being outputted with color, which is contrary to
what the Kconfig says. So change the color settings for error
and warning lines to no color if this Kconfig is disabled.

The log_output test is also amended to account for this.
Though the test is not skipped as no color is still some colors
(... well... maybe).

Fixes #77150

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-09-02 09:07:19 +02:00

13 lines
280 B
Plaintext

# Copyright (c) 2021 Nordic Semiconductor ASA
# Copyright (c) 2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
config LOG_INFO_COLOR_GREEN
default y if LOG_BACKEND_SHOW_COLOR
config LOG_DBG_COLOR_BLUE
default y if LOG_BACKEND_SHOW_COLOR
source "Kconfig.zephyr"