90 # define OVR_LOG_VAARG_ATTRIBUTE(a,b) __attribute__((format (printf, a, b)))
92 # define OVR_LOG_VAARG_ATTRIBUTE(a,b)
129 const
char* fmt, va_list argList);
178 #ifdef OVR_BUILD_DEBUG
181 void LogDebugText(
const char* fmt, ...) OVR_LOG_VAARG_ATTRIBUTE(1,2);
182 void LogDebug(const
char* fmt, ...) OVR_LOG_VAARG_ATTRIBUTE(1,2);
183 void LogAssert(const
char* fmt, ...) OVR_LOG_VAARG_ATTRIBUTE(1,2);
188 #define OVR_DEBUG_LOG(args) do { OVR::LogDebug args; } while(0)
189 #define OVR_DEBUG_LOG_TEXT(args) do { OVR::LogDebugText args; } while(0)
191 #define OVR_ASSERT_LOG(c, args) do { if (!(c)) { OVR::LogAssert args; OVR_DEBUG_BREAK; } } while(0)
196 #define OVR_DEBUG_LOG(args) ((void)0)
197 #define OVR_DEBUG_LOG_TEXT(args) ((void)0)
198 #define OVR_ASSERT_LOG(c, args) ((void)0)
void LogText(const char *fmt,...) OVR_LOG_VAARG_ATTRIBUTE(1
#define OVR_LOG_VAARG_ATTRIBUTE(a, b)
static bool IsDebugMessage(LogMessageType messageType)
static void DefaultLogOutput(const char *textBuffer, bool debug)
static void SetGlobalLog(Log *log)
virtual void LogMessageVarg(LogMessageType messageType, const char *fmt, va_list argList)
void void LogError(const char *fmt,...) OVR_LOG_VAARG_ATTRIBUTE(1
void LogMessage(LogMessageType messageType, const char *fmt,...) OVR_LOG_VAARG_ATTRIBUTE(3
static Log * GetDefaultLog()
void static void FormatLog(char *buffer, unsigned bufferSize, LogMessageType messageType, const char *fmt, va_list argList)
void SetLoggingMask(unsigned logMask)
static Log * GetGlobalLog()
unsigned GetLoggingMask() const
static Log * ConfigureDefaultLog(unsigned logMask=LogMask_Debug)
Log(unsigned logMask=LogMask_Debug)