1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/log: model in Kconfig

This commit is contained in:
Leandro Lanzieri 2021-11-17 11:47:45 +01:00
parent 58b3c07423
commit 2b811ba1b9
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 33 additions and 0 deletions

View File

@ -53,6 +53,7 @@ rsource "Kconfig.picolibc"
endmenu # Libc
rsource "log/Kconfig"
rsource "luid/Kconfig"
rsource "malloc_thread_safe/Kconfig"
rsource "matstat/Kconfig"

32
sys/log/Kconfig Normal file
View File

@ -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