Initial commit

This commit is contained in:
Gericom
2025-11-22 11:08:28 +01:00
commit 9cf3ffbfcf
358 changed files with 58350 additions and 0 deletions

32
common/logger/ILogger.h Normal file
View File

@@ -0,0 +1,32 @@
#pragma once
#include <stdarg.h>
enum class LogLevel
{
Off,
Fatal,
Error,
Warning,
Info,
Debug,
Trace,
All
};
class ILogger
{
public:
virtual ~ILogger() { }
void Log(LogLevel level, const char* fmt, ...)
{
va_list vlist;
va_start(vlist, fmt);
LogV(level, fmt, vlist);
va_end(vlist);
}
virtual void LogV(LogLevel level, const char* fmt, va_list vlist) = 0;
};