142 inline void Log::log(
const std::stacktrace& trace,
const std::source_location& loc, std::string_view message,
const MsgInputs&... args)
144 auto& tp = entt::locator<BS::priority_thread_pool>::value();
146 [
this, trace = trace, loc = loc, message = message, ... args = args]() {
154 .time = std::format(
"{0:%r}", std::chrono::zoned_time {std::chrono::current_zone(), std::chrono::system_clock::now()}.get_local_time()),
155 .file = std::filesystem::path(loc.file_name()).filename().string(),
157 .message = std::vformat(message, std::make_format_args(args...)),
158 .trace = std::to_string(trace)
163 const std::lock_guard<std::mutex> lock(
m_mutex);
165 for (
const auto& sink :
m_sinks)
173 throw std::runtime_error(lm.trace);