clang format all of this
This commit is contained in:
@@ -69,9 +69,9 @@ void log(LOG level, const std::source_location& loc, std::format_string<Args...>
|
||||
{
|
||||
auto now = std::chrono::system_clock::now();
|
||||
auto local = std::chrono::current_zone()->to_local(now);
|
||||
std::string msg = std::format("{:%x %H:%M:%S }", floor<std::chrono::milliseconds>(local)); // timestamp
|
||||
std::format_to(std::back_inserter(msg), pattern, color, pFname(loc.function_name()), reset); // tag
|
||||
std::format_to(std::back_inserter(msg), str, std::forward<Args>(args)...); // actual log message
|
||||
std::string msg = std::format("{:%x %H:%M:%S }", floor<std::chrono::milliseconds>(local)); // timestamp
|
||||
std::format_to(std::back_inserter(msg), pattern, color, pFname(loc.function_name()), reset); // tag
|
||||
std::format_to(std::back_inserter(msg), str, std::forward<Args>(args)...); // actual log message
|
||||
|
||||
std::scoped_lock lock(fmtx);
|
||||
gzFile file = gzopen(LOG_FILE_LOCATION, "ab");
|
||||
@@ -82,7 +82,7 @@ void log(LOG level, const std::source_location& loc, std::format_string<Args...>
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
} // namespace utils
|
||||
|
||||
#else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user