mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
always initialize level and thread_id in log_msg
This commit is contained in:
parent
4b66e94ecf
commit
3e2d593dde
@ -35,9 +35,9 @@ struct log_msg
|
|||||||
log_msg &operator=(log_msg &&other) = delete;
|
log_msg &operator=(log_msg &&other) = delete;
|
||||||
|
|
||||||
const std::string *logger_name{nullptr};
|
const std::string *logger_name{nullptr};
|
||||||
level::level_enum level;
|
level::level_enum level {level::off};
|
||||||
log_clock::time_point time;
|
log_clock::time_point time;
|
||||||
size_t thread_id;
|
size_t thread_id {0};
|
||||||
fmt::memory_buffer raw;
|
fmt::memory_buffer raw;
|
||||||
size_t msg_id;
|
size_t msg_id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user