Commit b17823d0 authored by Krzysztof Chruściński's avatar Krzysztof Chruściński Committed by Fabio Baltieri
Browse files

logging: Allow use of log_output without subsystem



Allow using log_output without the logging subsystem. It can be
used in the situation where external messages are processed.

Signed-off-by: default avatarKrzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
parent b5f65f20
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
# Copyright (c) 2016 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

menuconfig LOG
menu "Logging"

config LOG
	bool "Logging"
	select PRINTK if USERSPACE
	help
@@ -37,3 +39,11 @@ endif #LOG_FRONTEND
rsource "Kconfig.misc"

endif # LOG

config LOG_OUTPUT
	bool "Formatter helper"
	help
	  Module which provides formatting of log messages to a human-readable
	  strings.

endmenu
+0 −6
Original line number Diff line number Diff line
@@ -21,12 +21,6 @@ config LOG_FUNC_NAME_PREFIX_DBG

endmenu

config LOG_OUTPUT
	bool "Formatter helper"
	help
	  Module which provides formatting of log messages to a human-readable
	  strings.

menuconfig LOG_MIPI_SYST_ENABLE
	bool "MIPI SyS-T format output"
	select MIPI_SYST_LIB
+1 −1
Original line number Diff line number Diff line
@@ -429,7 +429,7 @@ static uint32_t prefix_print(const struct log_output *output,
	bool stamp = flags & LOG_OUTPUT_FLAG_TIMESTAMP;
	bool colors_on = flags & LOG_OUTPUT_FLAG_COLORS;
	bool level_on = flags & LOG_OUTPUT_FLAG_LEVEL;
	const char *tag = z_log_get_tag();
	const char *tag = IS_ENABLED(CONFIG_LOG) ? z_log_get_tag() : NULL;

	if (IS_ENABLED(CONFIG_LOG_BACKEND_NET) &&
	    flags & LOG_OUTPUT_FLAG_FORMAT_SYSLOG) {