2015-12-23 16:21:03 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Logger : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Logger();
|
2015-12-31 07:37:25 -05:00
|
|
|
~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();
|
2015-12-31 07:37:25 -05:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|