Skip to content

Commit

Permalink
sys/log/kconfig: change entry-point
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Dec 10, 2021
1 parent 3cc70d2 commit f77c51e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions sys/log/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,32 @@
# directory for more details.
#


menuconfig MODULE_LOG
choice
bool "Logging system override"
optional
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"
select MODULE_LOG
help
Implements a logging module with colored output.

config MODULE_LOG_PRINTFNOFORMAT
bool "puts-based log"
select MODULE_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

config MODULE_LOG
bool
help
Modules that override the default log implementation shoul select this.
For more information see core/include/log.h.

0 comments on commit f77c51e

Please sign in to comment.