Big refactor, shuffling a lot of files around

This commit is contained in:
2025-11-01 19:51:19 -04:00
parent 99b7d9f49d
commit 62cd94ca78
125 changed files with 4073 additions and 3011 deletions

View File

@@ -3,13 +3,14 @@
#include <filesystem>
#include <fstream>
namespace anm2ed::log
namespace anm2ed
{
#define LEVELS \
X(INFO, "[INFO]") \
X(WARNING, "[WARNING]") \
X(ERROR, "[ERROR]") \
X(FATAL, "[FATAL]")
X(FATAL, "[FATAL]") \
X(COMMAND, "[COMMAND]")
enum Level
{
@@ -35,10 +36,12 @@ namespace anm2ed::log
void warning(const std::string&);
void error(const std::string&);
void fatal(const std::string&);
void command(const std::string&);
void open(const std::filesystem::path&);
Logger();
~Logger();
};
extern Logger logger;
}
extern anm2ed::Logger logger;