This commit is contained in:
gabime
2014-12-02 02:27:11 +02:00
parent 4462a3c4e3
commit b0a687c148
3 changed files with 553 additions and 281 deletions

View File

@@ -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();
}