File indexing completed on 2025-01-30 10:24:43
0001
0002
0003
0004 #pragma once
0005
0006 #ifndef SPDLOG_HEADER_ONLY
0007 # include <spdlog/details/log_msg.h>
0008 #endif
0009
0010 #include <spdlog/details/os.h>
0011
0012 namespace spdlog {
0013 namespace details {
0014
0015 SPDLOG_INLINE log_msg::log_msg(spdlog::log_clock::time_point log_time, spdlog::source_loc loc, string_view_t a_logger_name,
0016 spdlog::level::level_enum lvl, spdlog::string_view_t msg)
0017 : logger_name(a_logger_name)
0018 , level(lvl)
0019 , time(log_time)
0020 #ifndef SPDLOG_NO_THREAD_ID
0021 , thread_id(os::thread_id())
0022 #endif
0023 , source(loc)
0024 , payload(msg)
0025 {}
0026
0027 SPDLOG_INLINE log_msg::log_msg(
0028 spdlog::source_loc loc, string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
0029 : log_msg(os::now(), loc, a_logger_name, lvl, msg)
0030 {}
0031
0032 SPDLOG_INLINE log_msg::log_msg(string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
0033 : log_msg(os::now(), source_loc{}, a_logger_name, lvl, msg)
0034 {}
0035
0036 }
0037 }