diff --git a/sys/Kconfig b/sys/Kconfig index f6d5e3979cf2..4ca64424ec34 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -53,6 +53,7 @@ rsource "Kconfig.picolibc" endmenu # Libc +rsource "log/Kconfig" rsource "luid/Kconfig" rsource "malloc_thread_safe/Kconfig" rsource "matstat/Kconfig" diff --git a/sys/log/Kconfig b/sys/log/Kconfig new file mode 100644 index 000000000000..fdc9b10ce311 --- /dev/null +++ b/sys/log/Kconfig @@ -0,0 +1,32 @@ +# Copyright (c) 2021 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + + +menuconfig MODULE_LOG + bool "Logging system override" + depends on TEST_KCONFIG + help + Say y to override the default logging functions. For more information see + core/include/log.h. + +choice LOG_BACKEND + bool "Implementation" + depends on MODULE_LOG + +config MODULE_LOG_COLOR + bool "Colored output" + help + Implements a logging module with colored output. + +config MODULE_LOG_PRINTFNOFORMAT + bool "puts-based log" + help + Logging is implemented using puts instead of printf. Use it where printf + might be too heavy. This also serves as an example for logging + implementation. + +endchoice diff --git a/tests/log_color/app.config.test b/tests/log_color/app.config.test new file mode 100644 index 000000000000..3b73d454d9a5 --- /dev/null +++ b/tests/log_color/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_LOG=y +CONFIG_MODULE_LOG_COLOR=y diff --git a/tests/log_printfnoformat/app.config.test b/tests/log_printfnoformat/app.config.test new file mode 100644 index 000000000000..a6da5b098069 --- /dev/null +++ b/tests/log_printfnoformat/app.config.test @@ -0,0 +1,2 @@ +CONFIG_MODULE_LOG=y +CONFIG_MODULE_LOG_PRINTFNOFORMAT=y