some bug fixes to attribute fork to get compilation working

pull/2687/head
Bailey Chittle 3 years ago
parent b6f496fc51
commit 76b7158ec1

@ -28,7 +28,7 @@ public:
template <typename T>
attr(std::string_view k, T const &v)
: key
: key{k}
, value{std::to_string(v)}
{}
};

@ -21,7 +21,7 @@ SPDLOG_INLINE log_msg_buffer::log_msg_buffer(const log_msg &orig_msg)
SPDLOG_INLINE log_msg_buffer::log_msg_buffer(const log_msg_buffer &other)
: log_msg{other}
, attributes{orig_msg.attributes}
, attributes{other.attributes}
{
buffer.append(logger_name.data(), logger_name.data() + logger_name.size());
buffer.append(payload.data(), payload.data() + payload.size());

@ -14,6 +14,7 @@ namespace details {
class SPDLOG_API log_msg_buffer : public log_msg
{
memory_buf_t buffer;
std::vector<attr> attributes;
void update_string_views();
public:

Loading…
Cancel
Save