mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
astyle
This commit is contained in:
parent
4462a3c4e3
commit
b0a687c148
File diff suppressed because it is too large
Load Diff
@ -48,7 +48,7 @@ struct log_msg
|
||||
level(other.level),
|
||||
time(other.time),
|
||||
tm_time(other.tm_time)
|
||||
{
|
||||
{
|
||||
raw.write(other.raw.data(), other.raw.size());
|
||||
formatted.write(other.formatted.data(), other.formatted.size());
|
||||
}
|
||||
@ -61,7 +61,7 @@ struct log_msg
|
||||
raw(std::move(other.raw)),
|
||||
formatted(std::move(other.formatted))
|
||||
{
|
||||
other.clear();
|
||||
other.clear();
|
||||
}
|
||||
|
||||
log_msg& operator=(log_msg&& other)
|
||||
@ -75,7 +75,7 @@ struct log_msg
|
||||
tm_time = other.tm_time;
|
||||
raw = std::move(other.raw);
|
||||
formatted = std::move(other.formatted);
|
||||
other.clear();
|
||||
other.clear();
|
||||
return *this;
|
||||
}
|
||||
|
||||
@ -83,7 +83,7 @@ struct log_msg
|
||||
|
||||
void clear()
|
||||
{
|
||||
level = level::OFF;
|
||||
level = level::OFF;
|
||||
raw.clear();
|
||||
formatted.clear();
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ inline void spdlog::sinks::async_sink::_sink_it(const details::log_msg& msg)
|
||||
{
|
||||
_push_sentry();
|
||||
_q.push(std::move(msg));
|
||||
|
||||
|
||||
}
|
||||
|
||||
inline void spdlog::sinks::async_sink::_thread_loop()
|
||||
@ -131,9 +131,9 @@ inline void spdlog::sinks::async_sink::_thread_loop()
|
||||
{
|
||||
|
||||
_formatter->format(msg);
|
||||
for (auto &s : _sinks)
|
||||
for (auto &s : _sinks)
|
||||
s->log(msg);
|
||||
|
||||
|
||||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user