Files
Nuake-custom/Nuake/src/Core/Logger.h
Antoine Pilote 0c6ed48bbd Major cleanup.
Moved to namespace
Cleanup includes
2021-07-11 18:56:44 -04:00

31 lines
451 B
C++

#pragma once
#include <string>
#include <vector>
namespace Nuake
{
enum LOG_TYPE
{
VERBOSE,
WARNING,
CRITICAL
};
struct LogEntry
{
LOG_TYPE type;
std::string time;
std::string message;
};
class Logger
{
public:
static void Log(std::string log, LOG_TYPE type = VERBOSE);
static std::vector<LogEntry> GetLogs();
private:
static const int MAX_LOG = 64;
static std::vector<LogEntry> m_Logs; // TODO: Use log struct.
};
}