forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig.template.log_config.net
55 lines (45 loc) · 1.3 KB
/
Kconfig.template.log_config.net
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Kconfig template file for setting networking log level for
# various network related components.
# Copyright (c) 2018 Intel Corporation.
# SPDX-License-Identifier: Apache-2.0
choice
prompt "$(module-str)"
default $(module)_LOG_LEVEL_DEFAULT
depends on $(module-dep)
# If we ever get help text macro expansion, then just uncomment
# the following lines.
# help
# $(module-help)
config $(module)_LOG_LEVEL_OFF
bool "Off"
help
Do not write to log.
config $(module)_LOG_LEVEL_ERR
bool "Error"
help
Only write to log when NET_ERR or LOG_ERR is used.
config $(module)_LOG_LEVEL_WRN
bool "Warning"
help
Write to log with NET_WARN or LOG_WRN in addition to previous level.
config $(module)_LOG_LEVEL_INF
bool "Info"
help
Write to log with NET_INFO or LOG_INF in addition to previous levels.
config $(module)_LOG_LEVEL_DBG
bool "Debug"
help
Write to log with NET_DBG or LOG_DBG in addition to previous levels.
config $(module)_LOG_LEVEL_DEFAULT
bool "Default"
help
Use default log level.
endchoice
config $(module)_LOG_LEVEL
int
default 0 if $(module)_LOG_LEVEL_OFF || !$(module-dep)
default 1 if $(module)_LOG_LEVEL_ERR
default 2 if $(module)_LOG_LEVEL_WRN
default 3 if $(module)_LOG_LEVEL_INF
default 4 if $(module)_LOG_LEVEL_DBG
default LOG_DEFAULT_LEVEL if $(module)_LOG_LEVEL_DEFAULT