Reverted const qualifier to log_msg& args, fixed issue #849, and added counter tests

This commit is contained in:
gabime
2018-10-05 14:23:37 +03:00
parent 2fa538779f
commit 36112371c0
8 changed files with 28 additions and 10 deletions

View File

@@ -39,8 +39,9 @@ struct log_msg
log_clock::time_point time;
size_t thread_id;
fmt::memory_buffer raw;
mutable size_t msg_id{0};
// info about wrapping the formatted text with color
size_t msg_id{0};
// info about wrapping the formatted text with color (updated by pattern_formatter).
mutable size_t color_range_start{0};
mutable size_t color_range_end{0};
};