Pyrogenesis  trunk
Classes | Macros | Variables
CLogger.h File Reference
#include <deque>
#include <fmt/printf.h>
#include <mutex>
#include <string>
#include <sstream>
Include dependency graph for CLogger.h:

Go to the source code of this file.

Classes

class  CLogger
 Error/warning/message logging class. More...
 
struct  CLogger::RenderedMessage
 
class  TestLogger
 Helper class for unit tests - captures all log output while it is in scope, and returns it as a single string. More...
 
class  TestStdoutLogger
 Helper class for unit tests - redirects all log output to stdout. More...
 

Macros

#define LOGMESSAGE(...)   g_Logger->WriteMessage(fmt::sprintf(__VA_ARGS__).c_str(), false)
 
#define LOGMESSAGERENDER(...)   g_Logger->WriteMessage(fmt::sprintf(__VA_ARGS__).c_str(), true)
 
#define LOGWARNING(...)   g_Logger->WriteWarning(fmt::sprintf(__VA_ARGS__).c_str())
 
#define LOGERROR(...)   g_Logger->WriteError (fmt::sprintf(__VA_ARGS__).c_str())
 

Variables

CLoggerg_Logger
 

Macro Definition Documentation

◆ LOGERROR

#define LOGERROR (   ...)    g_Logger->WriteError (fmt::sprintf(__VA_ARGS__).c_str())

◆ LOGMESSAGE

#define LOGMESSAGE (   ...)    g_Logger->WriteMessage(fmt::sprintf(__VA_ARGS__).c_str(), false)

◆ LOGMESSAGERENDER

#define LOGMESSAGERENDER (   ...)    g_Logger->WriteMessage(fmt::sprintf(__VA_ARGS__).c_str(), true)

◆ LOGWARNING

#define LOGWARNING (   ...)    g_Logger->WriteWarning(fmt::sprintf(__VA_ARGS__).c_str())

Variable Documentation

◆ g_Logger

CLogger* g_Logger