blob: 87f0890d24b9ca1ce9a36747baf19ce1883ab6ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <string>
#include <format>
#include <print>
#include "shared.hpp"
namespace NLog {
template <typename... Args>
//NOLINTNEXTLINE
void log(std::format_string<Args...> fmt, Args&&... args) {
std::string logMsg = "";
logMsg += std::vformat(fmt.get(), std::make_format_args(args...));
std::println("{}{}", logMsg, Colors::RESET);
std::fflush(stdout);
}
}
|