GigaPasjans
Loading...
Searching...
No Matches
Log.h
1// Wykonane przez Piotra ChudziƄskiego w dniu 10.04.2025
2#pragma once
3
4#include <fmt/color.h>
5#include <fmt/format.h>
6#include <fmt/xchar.h>
7#define SPDLOG_FMT_EXTERNAL
8// #include "spdlog/spdlog.h"
9
10// #define INFO(...) spdlog::info(__VA_ARGS__);
11// #define ERR(...) spdlog::error(__VA_ARGS__);
12// #define WARN(...) spdlog::warn(__VA_ARGS__);
13#define INFO(...) Log::Info(fmt::format(__VA_ARGS__));
14#define ERR(...) Log::Error(fmt::format(__VA_ARGS__));
15#define WARN(...) Log::Warn(fmt::format(__VA_ARGS__));
16
17namespace Log
18{
23 void Init();
24
29 void Disable();
30
31 void Info(const std::string_view &s);
32 void Error(const std::string_view &s);
33 void Warn(const std::string_view &s);
34} // namespace Log