1# Kconfig template file for setting networking log level for 2# various network related components. This template variant 3# allows user to specify the default log level. 4 5# Copyright (c) 2018 Intel Corporation. 6# SPDX-License-Identifier: Apache-2.0 7 8choice 9 prompt "$(module-str)" 10 default $(module)_$(module-def) 11 depends on $(module-dep) 12# If we ever get help text macro expansion, then just uncomment 13# the following lines. 14# help 15# $(module-help) 16 17config $(module)_LOG_LEVEL_OFF 18 bool "Off" 19 help 20 Do not write to log. 21 22config $(module)_LOG_LEVEL_ERR 23 bool "Error" 24 help 25 Only write to log when NET_ERR or LOG_ERR is used. 26 27config $(module)_LOG_LEVEL_WRN 28 bool "Warning" 29 help 30 Write to log with NET_WARN or LOG_WRN in addition to previous level. 31 32config $(module)_LOG_LEVEL_INF 33 bool "Info" 34 help 35 Write to log with NET_INFO or LOG_INF in addition to previous levels. 36 37config $(module)_LOG_LEVEL_DBG 38 bool "Debug" 39 help 40 Write to log with NET_DBG or LOG_DBG in addition to previous levels. 41 42endchoice 43 44config $(module)_LOG_LEVEL 45 int 46 default 0 if $(module)_LOG_LEVEL_OFF || !$(module-dep) 47 default 1 if $(module)_LOG_LEVEL_ERR 48 default 2 if $(module)_LOG_LEVEL_WRN 49 default 3 if $(module)_LOG_LEVEL_INF 50 default 4 if $(module)_LOG_LEVEL_DBG 51