Pyrogenesis  trunk
Classes | Macros | Variables
CLogger.h File Reference
#include <fstream>
#include <string>
#include <set>
#include <sstream>
#include "ps/ThreadUtil.h"
#include "third_party/cppformat/format.h"
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

#define LOGERROR (   ...)    g_Logger->WriteError (fmt::sprintf(__VA_ARGS__).c_str())
#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())

Variable Documentation

CLogger* g_Logger