1# SPDX-License-Identifier: BSD-3-Clause
2
3menu "Logging"
4
5config ZEPHYR_LOG
6	bool "Enable Logging via Zephyr"
7	default n
8	help
9	  Select for Zephyr logging support, and logging
10	  via SOF will be disabled. If not selected, SOF
11	  logging will be used.
12
13choice "SOF_LOG_LEVEL_CHOICE"
14	prompt "Max compiled-in log level for SOF"
15	default SOF_LOG_LEVEL_INF
16	depends on LOG
17
18config SOF_LOG_LEVEL_OFF
19	bool "Off"
20	help
21	  Set log level to off
22
23config SOF_LOG_LEVEL_ERR
24	bool "Error"
25	help
26	  Set log level to error
27
28config SOF_LOG_LEVEL_WRN
29	bool "Warning"
30	help
31	  Set log level to warning
32
33config SOF_LOG_LEVEL_INF
34	bool "Info"
35	help
36	  Set log level to info
37
38config SOF_LOG_LEVEL_DBG
39	bool "Debug"
40	help
41	  Set log level to debug
42
43endchoice
44
45config SOF_LOG_LEVEL
46	int
47	depends on LOG
48	default 0 if SOF_LOG_LEVEL_OFF
49	default 1 if SOF_LOG_LEVEL_ERR
50	default 2 if SOF_LOG_LEVEL_WRN
51	default 3 if SOF_LOG_LEVEL_INF
52	default 4 if SOF_LOG_LEVEL_DBG
53
54endmenu
55