shell: Add option to format logging timestamp

Add option to control formatting of the logging timestamp. By default
formatting is enabled which maintains backward compatibility.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2022-09-05 07:16:21 +02:00 committed by Carles Cufí
commit 64ab22bf43
2 changed files with 10 additions and 1 deletions

View file

@ -238,6 +238,14 @@ config SHELL_LOG_BACKEND
using the shell backend's LOG_LEVEL option
(e.g. CONFIG_SHELL_TELNET_INIT_LOG_LEVEL_NONE=y).
config SHELL_LOG_FORMAT_TIMESTAMP
bool "Format timestamp"
default y
depends on SHELL_LOG_BACKEND
help
Enable timestamp formatting.
source "subsys/shell/modules/Kconfig"
endif # SHELL