mirror of
https://github.com/UltraCoderRU/court_monitor.git
synced 2026-01-28 10:25:13 +00:00
12 lines
386 B
C++
12 lines
386 B
C++
#include "Logger.h"
|
|
|
|
void vlog(std::FILE* stream, const char* category, fmt::string_view format, fmt::format_args args)
|
|
{
|
|
log(stream, category, fmt::vformat(format, args));
|
|
}
|
|
|
|
void log(std::FILE* stream, const char* category, const std::string_view& message)
|
|
{
|
|
auto formattedCategory = fmt::format("({})", category);
|
|
fmt::print(stream, "{: >16} {}\n", formattedCategory, message);
|
|
}
|