Polyphase Game Engine
Loading...
Searching...
No Matches
Log.cpp File Reference
#include "Log.h"
#include "Renderer.h"
#include "Nodes/Widgets/Console.h"
#include "System/System.h"
#include "EngineTypes.h"
#include <vector>
#include <algorithm>

Macros

#define LOG_TO_FILE()
 

Functions

void InitializeLog ()
 
void ShutdownLog ()
 
void LogToFile (const char *format, va_list arg)
 
void EnableLog (bool enable)
 
bool IsLogEnabled ()
 
void LockLog ()
 
void UnlockLog ()
 
void RegisterLogCallback (LogCallbackFP callback)
 
void UnregisterLogCallback (LogCallbackFP callback)
 
void SetDebugLogsInBuildEnabled (bool enabled)
 
bool IsDebugLogsInBuildEnabled ()
 
void WriteConsoleMessage (glm::vec4 color, const char *format, va_list args)
 
void LogDebug (const char *format,...)
 
void LogWarning (const char *format,...)
 
void LogError (const char *format,...)
 
void LogConsole (glm::vec4 color, const char *format,...)
 

Macro Definition Documentation

◆ LOG_TO_FILE

#define LOG_TO_FILE ( )
Value:
if (GetEngineConfig()->mLogToFile) \
{ \
va_list argptr; \
va_start(argptr, format); \
LogToFile(format, argptr); \
va_end(argptr); \
}
const EngineConfig * GetEngineConfig()
Definition Engine.cpp:1011

Function Documentation

◆ EnableLog()

void EnableLog ( bool  enable)

◆ InitializeLog()

void InitializeLog ( )

◆ IsDebugLogsInBuildEnabled()

bool IsDebugLogsInBuildEnabled ( )

◆ IsLogEnabled()

bool IsLogEnabled ( )

◆ LockLog()

void LockLog ( )

◆ LogConsole()

void LogConsole ( glm::vec4  color,
const char *  format,
  ... 
)

◆ LogDebug()

void LogDebug ( const char *  format,
  ... 
)

◆ LogError()

void LogError ( const char *  format,
  ... 
)

◆ LogToFile()

void LogToFile ( const char *  format,
va_list  arg 
)

◆ LogWarning()

void LogWarning ( const char *  format,
  ... 
)

◆ RegisterLogCallback()

void RegisterLogCallback ( LogCallbackFP  callback)

◆ SetDebugLogsInBuildEnabled()

void SetDebugLogsInBuildEnabled ( bool  enabled)

◆ ShutdownLog()

void ShutdownLog ( )

◆ UnlockLog()

void UnlockLog ( )

◆ UnregisterLogCallback()

void UnregisterLogCallback ( LogCallbackFP  callback)

◆ WriteConsoleMessage()

void WriteConsoleMessage ( glm::vec4  color,
const char *  format,
va_list  args 
)