From f7ce5ac08c669ac763e275bb7c82dcfb2b1b6c33 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Tue, 22 Aug 2023 13:23:38 +1000 Subject: logging: add LogError, LogWarning, LogInfo, LogDebug, LogTrace These provide simple and clear ways to write the most common logging operations: LogInfo("msg"); LogDebug(BCLog::LogFlags::NET, "msg"); LogError("msg"); LogWarning("msg"); LogTrace(BCLog::LogFlags::NET, "msg"); For cases where the level cannot be hardcoded, LogPrintLevel(category, level, ...) remains available. --- test/lint/lint-format-strings.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/lint') diff --git a/test/lint/lint-format-strings.py b/test/lint/lint-format-strings.py index 5ac5840ecf..09d858e131 100755 --- a/test/lint/lint-format-strings.py +++ b/test/lint/lint-format-strings.py @@ -20,6 +20,11 @@ FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS = [ 'fprintf,1', 'tfm::format,1', # Assuming tfm::::format(std::ostream&, ... 'LogConnectFailure,1', + 'LogError,0', + 'LogWarning,0', + 'LogInfo,0', + 'LogDebug,1', + 'LogTrace,1', 'LogPrint,1', 'LogPrintf,0', 'LogPrintfCategory,1', -- cgit v1.2.3