Agora
1.2.0
Agora project
log_msg.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/common.h
>
7
#include <string>
8
9
namespace
spdlog
{
10
namespace
details {
11
struct
SPDLOG_API
log_msg
12
{
13
log_msg
() =
default
;
14
log_msg
(log_clock::time_point log_time,
source_loc
loc,
string_view_t
logger_name,
level::level_enum
lvl,
string_view_t
msg);
15
log_msg
(
source_loc
loc,
string_view_t
logger_name,
level::level_enum
lvl,
string_view_t
msg);
16
log_msg
(
string_view_t
logger_name,
level::level_enum
lvl,
string_view_t
msg);
17
log_msg
(
const
log_msg
&other) =
default
;
18
log_msg
&operator=(
const
log_msg
&other) =
default
;
19
20
string_view_t
logger_name
;
21
level::level_enum
level{
level::off
};
22
log_clock::time_point
time
;
23
size_t
thread_id
{0};
24
25
// wrapping the formatted text with color (updated by pattern_formatter).
26
mutable
size_t
color_range_start{0};
27
mutable
size_t
color_range_end{0};
28
29
source_loc
source
;
30
string_view_t
payload
;
31
};
32
}
// namespace details
33
}
// namespace spdlog
34
35
#ifdef SPDLOG_HEADER_ONLY
36
# include "
log_msg-inl.h
"
37
#endif
moodycamel::details::thread_id
thread_id_t thread_id()
Definition:
concurrentqueue.h:157
spdlog::level::off
@ off
Definition:
common.h:219
spdlog::details::log_msg::payload
string_view_t payload
Definition:
log_msg.h:30
fmt::v8::basic_string_view
Definition:
core.h:448
spdlog::level::level_enum
level_enum
Definition:
common.h:211
log_msg-inl.h
spdlog
Definition:
async.h:25
spdlog::details::log_msg::logger_name
string_view_t logger_name
Definition:
log_msg.h:20
spdlog::source_loc
Definition:
common.h:290
common.h
spdlog::details::log_msg
Definition:
log_msg.h:11
spdlog::details::log_msg::source
source_loc source
Definition:
log_msg.h:29
SPDLOG_API
#define SPDLOG_API
Definition:
common.h:40
spdlog::details::log_msg::time
log_clock::time_point time
Definition:
log_msg.h:22
third_party
spdlog
include
spdlog
details
log_msg.h
Generated by
1.8.17