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 /binaryninjaapi.h | |
| parent | 5ce116e4d1d3c30537f3635c06d7a0c619e55e43 (diff) | |
Add LogTrace
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index c9c0ea70..37b7bb71 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -479,8 +479,20 @@ namespace BinaryNinja { #endif void Log(BNLogLevel level, const char* fmt, ...); + /*! LogTrace only writes text to the error console if the console is set to log level: DebugLog + Log level and the build is not a DEBUG build (i.e. the preprocessor directive _DEBUG is defined) + + \param fmt C-style format string. + \param ... Variable arguments corresponding to the format string. + */ +#ifdef __GNUC__ + __attribute__((format(printf, 1, 2))) +#endif + void LogTrace(const char* fmt, ...); + + /*! LogDebug only writes text to the error console if the console is set to log level: DebugLog - Log level DebugLog is the most verbose logging level. + Log level DebugLog is the most verbose logging level in release builds. \param fmt C-style format string. \param ... Variable arguments corresponding to the format string. @@ -548,6 +560,7 @@ namespace BinaryNinja { Logger(BNLogger* logger); Logger(const std::string& loggerName, size_t sessionId = 0); void Log(BNLogLevel level, const char* fmt, ...); + void LogTrace(const char* fmt, ...); void LogDebug(const char* fmt, ...); void LogInfo(const char* fmt, ...); void LogWarn(const char* fmt, ...); |
