iw4x-client/src/Components/Modules/Logger.hpp

23 lines
492 B
C++
Raw Normal View History

2015-12-23 16:21:03 -05:00
namespace Components
{
class Logger : public Component
{
public:
Logger();
~Logger();
2015-12-23 16:21:03 -05:00
const char* GetName() { return "Logger"; };
static void Print(const char* message, ...);
static void Error(const char* message, ...);
static void SoftError(const char* message, ...);
static bool IsConsoleReady();
private:
static std::mutex MessageMutex;
static std::vector<std::string> MessageQueue;
static void Frame();
static void EnqueueMessage(std::string message);
2015-12-23 16:21:03 -05:00
};
}