1# Copyright (c) 2021 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4menu "Output Formatting"
5
6menu "Prepend non-hexdump log message with function name"
7	depends on !LOG_FRONTEND
8
9config LOG_FUNC_NAME_PREFIX_ERR
10	bool "Error messages prepended"
11
12config LOG_FUNC_NAME_PREFIX_WRN
13	bool "Warning messages prepended"
14
15config LOG_FUNC_NAME_PREFIX_INF
16	bool "Info messages prepended"
17
18config LOG_FUNC_NAME_PREFIX_DBG
19	bool "Debug messages prepended"
20	default y
21
22endmenu
23
24config LOG_MIPI_SYST_ENABLE
25	bool "Enable MIPI SyS-T format output"
26	select MIPI_SYST_LIB
27	help
28	  Enable MIPI SyS-T format output for the logger system.
29
30config LOG_DICTIONARY_SUPPORT
31	bool
32	depends on LOG2
33	help
34	  Enable support for dictionary based logging.
35
36	  Dictionary based logging is binary based where predefined strings
37	  are replaced with their equivalent addresses from the built binary
38	  image file in log output. This reduces the size required to store
39	  the log output when there are long format strings to be logged.
40
41	  This should be selected by the backend automatically.
42
43config LOG_IMMEDIATE_CLEAN_OUTPUT
44	bool "Clean log output"
45	depends on LOG_IMMEDIATE
46	help
47	  If enabled, interrupts are locked during whole log message processing.
48	  As a result, processing on one log message cannot be interrupted by
49	  another one and output is clean, not interleaved. However, enabling
50	  this option is causing interrupts locking for significant amount of
51	  time (up to multiple milliseconds).
52
53config LOG_BACKEND_SHOW_COLOR
54	bool "Enable colors in the backend"
55	depends on LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \
56	           || LOG_BACKEND_SWO || LOG_BACKEND_XTENSA_SIM
57	default y
58	help
59	  When enabled selected backend prints errors in red and warning in yellow.
60
61config LOG_BACKEND_FORMAT_TIMESTAMP
62	bool "Enable timestamp formatting in the backend"
63	depends on LOG_BACKEND_UART || LOG_BACKEND_NATIVE_POSIX || LOG_BACKEND_RTT \
64	           || LOG_BACKEND_SWO || LOG_BACKEND_XTENSA_SIM || LOG_BACKEND_FS
65	default y
66	help
67	  When enabled timestamp is formatted to hh:mm:ss:ms,us.
68
69endmenu
70