9 #ifndef _TurtleBrains_DebugLogger_h_
10 #define _TurtleBrains_DebugLogger_h_
12 #include "tb_debug_tool_set.h"
20 #if defined(tb_enable_debug_set) || defined(tb_generate_documentation)
33 #define tb_log_open(logFile, createConsoleWindow) TurtleBrains::Core::Debug::OpenLog(logFile, createConsoleWindow)
40 #define tb_log_save() TurtleBrains::Core::Debug::SaveLog()
48 #define tb_log_close() TurtleBrains::Core::Debug::CloseLog()
59 #define tb_log(formattedMessage, ...) TurtleBrains::Core::Debug::Log(formattedMessage, ##__VA_ARGS__)
73 #define tb_log_if(testResult, formattedMessage, ...) TurtleBrains::Core::Debug::LogIf((testResult), formattedMessage, ##__VA_ARGS__)
75 #else //NO tb_enable_debug_set
77 #define tb_log_open(logFile, createConsoleWindow) ;
78 #define tb_log_save() ;
79 #define tb_log_close() ;
80 #define tb_log(formattedMessage, ...) ;
81 #define tb_log_if(test, formattedMessage, ...) ;
108 void OpenLog(
const std::string& logFile,
bool createConsoleWindow);
137 void Log(
const char* formattedMessage, ...);
152 void LogIf(
const bool testResult,
const char* formattedMessage, ...);
void OpenLog(const std::string &logFile, bool createConsoleWindow)
void LogIf(const bool testResult, const char *formattedMessage,...)
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
void Log(const char *formattedMessage,...)