summaryrefslogtreecommitdiff
path: root/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'log.cpp')
-rw-r--r--log.cpp22
1 files changed, 22 insertions, 0 deletions
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;