|
|
@ -8,32 +8,13 @@
|
|
|
|
namespace spdlog {
|
|
|
|
namespace spdlog {
|
|
|
|
namespace details {
|
|
|
|
namespace details {
|
|
|
|
|
|
|
|
|
|
|
|
log_msg::log_msg(spdlog::log_clock::time_point log_time,
|
|
|
|
|
|
|
|
spdlog::source_loc loc,
|
|
|
|
|
|
|
|
string_view_t a_logger_name,
|
|
|
|
|
|
|
|
spdlog::level lvl,
|
|
|
|
|
|
|
|
spdlog::string_view_t msg,
|
|
|
|
|
|
|
|
spdlog::log_attributes attributes)
|
|
|
|
|
|
|
|
: logger_name(a_logger_name),
|
|
|
|
|
|
|
|
log_level(lvl),
|
|
|
|
|
|
|
|
time(log_time)
|
|
|
|
|
|
|
|
#ifndef SPDLOG_NO_THREAD_ID
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
thread_id(os::thread_id())
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
source(loc),
|
|
|
|
|
|
|
|
payload(msg),
|
|
|
|
|
|
|
|
attributes(attributes) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log_msg::log_msg(const log_clock::time_point log_time,
|
|
|
|
log_msg::log_msg(const log_clock::time_point log_time,
|
|
|
|
const source_loc loc,
|
|
|
|
const source_loc &loc,
|
|
|
|
const string_view_t a_logger_name,
|
|
|
|
const string_view_t logger_name,
|
|
|
|
const level lvl,
|
|
|
|
const level lvl,
|
|
|
|
const string_view_t msg,
|
|
|
|
const string_view_t msg,
|
|
|
|
const log_attributes attributes)
|
|
|
|
const log_attributes attributes)
|
|
|
|
: logger_name(a_logger_name),
|
|
|
|
: logger_name(logger_name),
|
|
|
|
log_level(lvl),
|
|
|
|
log_level(lvl),
|
|
|
|
time(log_time),
|
|
|
|
time(log_time),
|
|
|
|
#ifdef SPDLOG_NO_THREAD_ID
|
|
|
|
#ifdef SPDLOG_NO_THREAD_ID
|
|
|
@ -64,20 +45,16 @@ log_msg::log_msg(const log_clock::time_point log_time,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log_msg::log_msg(const source_loc &loc, const string_view_t logger_name, const level lvl, const string_view_t msg)
|
|
|
|
log_msg::log_msg(const source_loc &loc, const string_view_t logger_name, const level lvl, const string_view_t msg)
|
|
|
|
: log_msg(os::now(), loc, logger_name, lvl, msg) {}
|
|
|
|
: log_msg(os::now(), loc, logger_name, lvl, msg, {}) {}
|
|
|
|
|
|
|
|
|
|
|
|
log_msg::log_msg(spdlog::source_loc loc,
|
|
|
|
log_msg::log_msg(const source_loc &loc, string_view_t logger_name, level lvl, string_view_t msg, log_attributes attributes)
|
|
|
|
string_view_t a_logger_name,
|
|
|
|
: log_msg(os::now(), loc, logger_name, lvl, msg, attributes) {}
|
|
|
|
spdlog::level lvl,
|
|
|
|
|
|
|
|
spdlog::string_view_t msg,
|
|
|
|
|
|
|
|
spdlog::log_attributes attributes)
|
|
|
|
|
|
|
|
: log_msg(os::now(), loc, a_logger_name, lvl, msg, attributes) {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log_msg::log_msg(const string_view_t logger_name, const level lvl, const string_view_t msg)
|
|
|
|
log_msg::log_msg(const string_view_t logger_name, const level lvl, const string_view_t msg)
|
|
|
|
: log_msg(os::now(), source_loc{}, logger_name, lvl, msg) {}
|
|
|
|
: log_msg(os::now(), source_loc{}, logger_name, lvl, msg) {}
|
|
|
|
|
|
|
|
|
|
|
|
log_msg::log_msg(string_view_t a_logger_name, spdlog::level lvl, spdlog::string_view_t msg, spdlog::log_attributes attributes)
|
|
|
|
log_msg::log_msg(const string_view_t logger_name, const level lvl, const string_view_t msg, const log_attributes attributes)
|
|
|
|
: log_msg(os::now(), source_loc{}, a_logger_name, lvl, msg, attributes) {}
|
|
|
|
: log_msg(os::now(), source_loc{}, logger_name, lvl, msg, attributes) {}
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace details
|
|
|
|
} // namespace details
|
|
|
|
} // namespace spdlog
|
|
|
|
} // namespace spdlog
|
|
|
|