diff options
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; |
