spdlog
Loading...
Searching...
No Matches
log_msg_buffer.h
Go to the documentation of this file.
1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
2// Distributed under the MIT License (http://opensource.org/licenses/MIT)
3
4#pragma once
5
7
8namespace spdlog {
9namespace details {
10
11// Extend log_msg with internal buffer to store its payload.
12// This is needed since log_msg holds string_views that points to stack data.
13
15{
17 void update_string_views();
18
19public:
20 log_msg_buffer() = default;
21 explicit log_msg_buffer(const log_msg &orig_msg);
22 log_msg_buffer(const log_msg_buffer &other);
24 log_msg_buffer &operator=(const log_msg_buffer &other);
26};
27
28} // namespace details
29} // namespace spdlog
30
31#ifdef SPDLOG_HEADER_ONLY
32# include "log_msg_buffer-inl.h"
33#endif
#define SPDLOG_NOEXCEPT
Definition common.h:53
#define SPDLOG_API
Definition common.h:31
Definition async.h:25
fmt::basic_memory_buffer< char, 250 > memory_buf_t
Definition common.h:116