mirror of
https://github.com/DrPerkyLegit/LCEServerTest.git
synced 2026-05-21 19:14:33 +00:00
removed stdafx from server namespace logger is now header only added class stubs added accessor classes and minor code in them added nlohmann_json to includes protocol switch back to 560 while we wait for next neolegacy release
32 lines
658 B
C++
32 lines
658 B
C++
#pragma once
|
|
#include <cstdio>
|
|
|
|
class Logger {
|
|
public:
|
|
static void Info(const char* message) {
|
|
printf("[INFO] %s\n", message);
|
|
fflush(stdout);
|
|
}
|
|
static void Warning(const char* message) {
|
|
printf("[INFO] %s\n", message);
|
|
fflush(stdout);
|
|
}
|
|
static void Error(const char* message) {
|
|
printf("[INFO] %s\n", message);
|
|
fflush(stdout);
|
|
}
|
|
|
|
static void Info(const wchar_t* message) {
|
|
wprintf(L"[INFO] %s\n", message);
|
|
fflush(stdout);
|
|
}
|
|
static void Warning(const wchar_t* message) {
|
|
wprintf(L"[INFO] %s\n", message);
|
|
fflush(stdout);
|
|
}
|
|
|
|
static void Error(const wchar_t* message) {
|
|
wprintf(L"[INFO] %s\n", message);
|
|
fflush(stdout);
|
|
}
|
|
}; |