|
|
|
@ -13,24 +13,21 @@
|
|
|
|
|
namespace spdlog {
|
|
|
|
|
|
|
|
|
|
// public methods
|
|
|
|
|
SPDLOG_INLINE logger::logger(const logger &other):
|
|
|
|
|
name_(other.name_),
|
|
|
|
|
sinks_(other.sinks_),
|
|
|
|
|
level_(other.level_.load(std::memory_order_relaxed)),
|
|
|
|
|
flush_level_(other.flush_level_.load(std::memory_order_relaxed)),
|
|
|
|
|
custom_err_handler_(other.custom_err_handler_)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SPDLOG_INLINE logger::logger(logger &&other):
|
|
|
|
|
name_(std::move(other.name_)),
|
|
|
|
|
sinks_(std::move(other.sinks_)),
|
|
|
|
|
level_(other.level_.load(std::memory_order_relaxed)),
|
|
|
|
|
flush_level_(other.flush_level_.load(std::memory_order_relaxed)),
|
|
|
|
|
custom_err_handler_(std::move(other.custom_err_handler_))
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SPDLOG_INLINE logger::logger(const logger &other)
|
|
|
|
|
: name_(other.name_)
|
|
|
|
|
, sinks_(other.sinks_)
|
|
|
|
|
, level_(other.level_.load(std::memory_order_relaxed))
|
|
|
|
|
, flush_level_(other.flush_level_.load(std::memory_order_relaxed))
|
|
|
|
|
, custom_err_handler_(other.custom_err_handler_)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
SPDLOG_INLINE logger::logger(logger &&other)
|
|
|
|
|
: name_(std::move(other.name_))
|
|
|
|
|
, sinks_(std::move(other.sinks_))
|
|
|
|
|
, level_(other.level_.load(std::memory_order_relaxed))
|
|
|
|
|
, flush_level_(other.flush_level_.load(std::memory_order_relaxed))
|
|
|
|
|
, custom_err_handler_(std::move(other.custom_err_handler_))
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
SPDLOG_INLINE logger &logger::operator=(logger other)
|
|
|
|
|
{
|
|
|
|
@ -56,7 +53,6 @@ namespace spdlog {
|
|
|
|
|
custom_err_handler_.swap(other.custom_err_handler_);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPDLOG_INLINE void swap(logger &a, logger &b)
|
|
|
|
|
{
|
|
|
|
|
a.swap(b);
|
|
|
|
|