1# Copyright (c) 2021 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4menu "Logging levels filtering"
5
6config LOG_RUNTIME_FILTERING
7	bool "Runtime filtering reconfiguration"
8	depends on !LOG_FRONTEND && !LOG_MINIMAL
9	help
10	  Allow runtime configuration of maximal, independent severity
11	  level for instance.
12
13config LOG_DEFAULT_LEVEL
14	int "Default log level"
15	default 3
16	range 0 4
17	help
18	  Sets log level for modules which don't specify it explicitly. When
19	  set to 0 it means log will not be activated for those modules.
20	  Levels are:
21
22	  - 0 OFF, do not write by default
23	  - 1 ERROR, default to only write LOG_LEVEL_ERR
24	  - 2 WARNING, default to write LOG_LEVEL_WRN
25	  - 3 INFO, default to write LOG_LEVEL_INFO
26	  - 4 DEBUG, default to write LOG_LEVEL_DBG
27
28config LOG_OVERRIDE_LEVEL
29	int "Override lowest log level"
30	default 0
31	range 0 4
32	help
33	  Forces a minimum log level for all modules. Modules use their
34	  specified level if it is greater than this option, otherwise they use
35	  the level specified by this option instead of their default or
36	  whatever was manually set.
37	  Levels are:
38
39	  - 0 OFF, do not override
40	  - 1 ERROR, override to write LOG_LEVEL_ERR
41	  - 2 WARNING, override to write LOG_LEVEL_WRN
42	  - 3 INFO, override to write LOG_LEVEL_INFO
43	  - 4 DEBUG, override to write LOG_LEVEL_DBG
44
45config LOG_MAX_LEVEL
46	int "Maximal log level compiled in the system"
47	default 4
48	range 0 4
49	help
50	  Forces a maximal log level for all modules. Modules saturates their
51	  specified level if it is greater than this option, otherwise they use
52	  the level specified by this option instead of their default or
53	  whatever was manually set.
54	  Levels are:
55
56	  - 0 OFF, logging is turned off
57	  - 1 ERROR, maximal level set to LOG_LEVEL_ERR
58	  - 2 WARNING, maximal level set to LOG_LEVEL_WRN
59	  - 3 INFO, maximal level set to LOG_LEVEL_INFO
60	  - 4 DEBUG, maximal level set to LOG_LEVEL_DBG
61
62endmenu
63