diff options
| author | Peter LaFosse <peter@vector35.com> | 2022-03-14 12:35:52 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-03-16 08:05:27 -0400 |
| commit | 0f50030264445dc2bdcf10809cf8e4d6c48b71d1 (patch) | |
| tree | fc1c2bd44b60a18e65f4d17bbd9181c7eb925975 /log.cpp | |
| parent | 5ce116e4d1d3c30537f3635c06d7a0c619e55e43 (diff) | |
Add LogTrace
Diffstat (limited to 'log.cpp')
| -rw-r--r-- | log.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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; |
