sys/log: model in Kconfig
This commit is contained in:
parent
58b3c07423
commit
2b811ba1b9
@ -53,6 +53,7 @@ rsource "Kconfig.picolibc"
|
|||||||
|
|
||||||
endmenu # Libc
|
endmenu # Libc
|
||||||
|
|
||||||
|
rsource "log/Kconfig"
|
||||||
rsource "luid/Kconfig"
|
rsource "luid/Kconfig"
|
||||||
rsource "malloc_thread_safe/Kconfig"
|
rsource "malloc_thread_safe/Kconfig"
|
||||||
rsource "matstat/Kconfig"
|
rsource "matstat/Kconfig"
|
||||||
|
|||||||
32
sys/log/Kconfig
Normal file
32
sys/log/Kconfig
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user