shell: logging: Allow users to change SHELL_LOG_BACKEND value
By adding a prompt, users can alter the default value of SHELL_LOG_BACKEND. While it makes sense that when you have a shell, the log messages will, by default, be shown there, sometimes you want to disable this selection. For example, when you have a telnet shell (SHELL_BACKEND_TELNET) and want to debug the network subsys. Signed-off-by: David D <a8961713@gmail.com>
This commit is contained in:
parent
bda438a6ee
commit
e9d843a42e
1 changed files with 8 additions and 1 deletions
|
@ -146,9 +146,16 @@ config SHELL_CMDS_SELECT
|
|||
command. Exit to main command tree is with alt+r.
|
||||
|
||||
config SHELL_LOG_BACKEND
|
||||
bool
|
||||
bool "Enable shell log backend"
|
||||
depends on !LOG_MINIMAL
|
||||
default y if LOG
|
||||
help
|
||||
When enabled, backend will use the shell for logging.
|
||||
This option is enabled by default.
|
||||
Disabling this option disables log output to all shell backends.
|
||||
Disabling log output to a specific shell backend can be achieved
|
||||
using the shell backend's LOG_LEVEL option
|
||||
(e.g. CONFIG_SHELL_TELNET_INIT_LOG_LEVEL_NONE=y).
|
||||
|
||||
source "subsys/shell/modules/Kconfig"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue