Agora
1.2.0
Agora project
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
6
#include <
spdlog/details/log_msg.h
>
7
8
namespace
spdlog
{
9
namespace
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
14
class
SPDLOG_API
log_msg_buffer
:
public
log_msg
15
{
16
memory_buf_t
buffer
;
17
void
update_string_views();
18
19
public
:
20
log_msg_buffer
() =
default
;
21
explicit
log_msg_buffer
(
const
log_msg
&orig_msg);
22
log_msg_buffer
(
const
log_msg_buffer
&other);
23
log_msg_buffer
(
log_msg_buffer
&&other)
SPDLOG_NOEXCEPT
;
24
log_msg_buffer
&operator=(
const
log_msg_buffer
&other);
25
log_msg_buffer
&operator=(
log_msg_buffer
&&other)
SPDLOG_NOEXCEPT
;
26
};
27
28
}
// namespace details
29
}
// namespace spdlog
30
31
#ifdef SPDLOG_HEADER_ONLY
32
# include "
log_msg_buffer-inl.h
"
33
#endif
SPDLOG_NOEXCEPT
#define SPDLOG_NOEXCEPT
Definition:
common.h:64
fmt::v8::basic_memory_buffer
Definition:
format.h:677
spdlog
Definition:
async.h:25
spdlog::details::log_msg_buffer
Definition:
log_msg_buffer.h:14
spdlog::details::log_msg_buffer::buffer
memory_buf_t buffer
Definition:
log_msg_buffer.h:16
spdlog::details::log_msg
Definition:
log_msg.h:11
log_msg_buffer-inl.h
SPDLOG_API
#define SPDLOG_API
Definition:
common.h:40
log_msg.h
third_party
spdlog
include
spdlog
details
log_msg_buffer.h
Generated by
1.8.17