diff --git a/include/spdlog/details/log_msg.h b/include/spdlog/details/log_msg.h index 49987515..40c88eb6 100644 --- a/include/spdlog/details/log_msg.h +++ b/include/spdlog/details/log_msg.h @@ -35,9 +35,9 @@ struct log_msg log_msg &operator=(log_msg &&other) = delete; const std::string *logger_name{nullptr}; - level::level_enum level; + level::level_enum level {level::off}; log_clock::time_point time; - size_t thread_id; + size_t thread_id {0}; fmt::memory_buffer raw; size_t msg_id;