Files
Nuake-custom/Nuake/src/Core/Logger.h
2023-03-03 15:16:27 -05:00

31 lines
433 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(const 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;
};
}