e4bd0fceef
Add option to Kconfig to enable log_output module. It is used by most of the backends but it is an optional formatter helper thus it is possible to run logging without it. One example might be dictionary based logging which does not format log message to a readable string. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
40 lines
583 B
Plaintext
40 lines
583 B
Plaintext
# Copyright (c) 2016 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig LOG
|
|
bool "Logging"
|
|
select PRINTK if USERSPACE
|
|
help
|
|
Global switch for the logger, when turned off log calls will not be
|
|
compiled in.
|
|
|
|
if LOG
|
|
|
|
rsource "Kconfig.mode"
|
|
|
|
rsource "Kconfig.filtering"
|
|
|
|
rsource "Kconfig.processing"
|
|
|
|
if !LOG_MODE_MINIMAL
|
|
|
|
rsource "Kconfig.formatting"
|
|
|
|
if !LOG_FRONTEND_ONLY
|
|
|
|
rsource "Kconfig.backends"
|
|
|
|
endif # !LOG_FRONTEND_ONLY
|
|
|
|
endif # !LOG_MODE_MINIMAL
|
|
|
|
if LOG_FRONTEND
|
|
|
|
rsource "Kconfig.frontends"
|
|
|
|
endif #LOG_FRONTEND
|
|
|
|
rsource "Kconfig.misc"
|
|
|
|
endif # LOG
|