Photon 1.0.0
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
9{
10 namespace details
11 {
12
13 // Extend log_msg with internal buffer to store its payload.
14 // This is needed since log_msg holds string_views that points to stack data.
15
17 {
19 void update_string_views();
20
21 public:
22 log_msg_buffer() = default;
23 explicit log_msg_buffer(const log_msg& orig_msg);
24 log_msg_buffer(const log_msg_buffer& other);
26 log_msg_buffer& operator=(const log_msg_buffer& other);
28 };
29
30 } // namespace details
31} // namespace spdlog
32
33#ifdef SPDLOG_HEADER_ONLY
34#include "log_msg_buffer-inl.h"
35#endif
Definition log_msg_buffer.h:17
memory_buf_t buffer
Definition log_msg_buffer.h:18
#define SPDLOG_NOEXCEPT
Definition common.h:69
#define SPDLOG_API
Definition common.h:45
Definition async.h:26
fmt::basic_memory_buffer< char, 250 > memory_buf_t
Definition common.h:173
Definition log_msg.h:14
annotation details
Definition tag_strings.h:125