From 0f50030264445dc2bdcf10809cf8e4d6c48b71d1 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 14 Mar 2022 12:35:52 -0400 Subject: Add LogTrace --- log.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'log.cpp') diff --git a/log.cpp b/log.cpp index 0c6916b9..22b06bd8 100644 --- a/log.cpp +++ b/log.cpp @@ -106,6 +106,17 @@ void BinaryNinja::Log(BNLogLevel level, const char* fmt, ...) } +void BinaryNinja::LogTrace(const char* fmt, ...) +{ +#ifdef _DEBUG + va_list args; + va_start(args, fmt); + PerformLog(0, DebugLog, "", 0, fmt, args); + va_end(args); +#endif +} + + void BinaryNinja::LogDebug(const char* fmt, ...) { va_list args; @@ -200,6 +211,17 @@ void Logger::Log(BNLogLevel level, const char* fmt, ...) } +void Logger::LogTrace(const char* fmt, ...) +{ +#ifdef _DEBUG + va_list args; + va_start(args, fmt); + PerformLog(GetSessionId(), DebugLog, GetName(), GetThreadId(), fmt, args); + va_end(args); +#endif +} + + void Logger::LogDebug(const char* fmt, ...) { va_list args; -- cgit v1.3.1