-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17286 from leandrolanzieri/pr/sys/log/model_kconfig
sys/log: model Kconfig
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_MODULE_LOG=y | ||
CONFIG_MODULE_LOG_COLOR=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CONFIG_MODULE_LOG=y | ||
CONFIG_MODULE_LOG_PRINTFNOFORMAT=y |