Agora
1.2.0
Agora project
log_msg-inl.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
#ifndef SPDLOG_HEADER_ONLY
7
# include <
spdlog/details/log_msg.h
>
8
#endif
9
10
#include <
spdlog/details/os.h
>
11
12
namespace
spdlog
{
13
namespace
details {
14
15
SPDLOG_INLINE
log_msg::log_msg
(spdlog::log_clock::time_point log_time,
spdlog::source_loc
loc,
string_view_t
a_logger_name,
16
spdlog::level::level_enum
lvl,
spdlog::string_view_t
msg)
17
: logger_name(a_logger_name)
18
, level(lvl)
19
, time(log_time)
20
#ifndef SPDLOG_NO_THREAD_ID
21
,
thread_id
(os::
thread_id
())
22
#endif
23
, source(loc)
24
, payload(msg)
25
{}
26
27
SPDLOG_INLINE
log_msg::log_msg
(
28
spdlog::source_loc
loc,
string_view_t
a_logger_name,
spdlog::level::level_enum
lvl,
spdlog::string_view_t
msg)
29
:
log_msg
(os::
now
(), loc, a_logger_name, lvl, msg)
30
{}
31
32
SPDLOG_INLINE
log_msg::log_msg
(
string_view_t
a_logger_name,
spdlog::level::level_enum
lvl,
spdlog::string_view_t
msg)
33
:
log_msg
(os::
now
(),
source_loc
{}, a_logger_name, lvl, msg)
34
{}
35
36
}
// namespace details
37
}
// namespace spdlog
moodycamel::details::thread_id
thread_id_t thread_id()
Definition:
concurrentqueue.h:157
spdlog::string_view_t
fmt::basic_string_view< char > string_view_t
Definition:
common.h:154
fmt::v8::basic_string_view
Definition:
core.h:448
spdlog::details::os::now
SPDLOG_INLINE spdlog::log_clock::time_point now() SPDLOG_NOEXCEPT
Definition:
os-inl.h:71
spdlog::level::level_enum
level_enum
Definition:
common.h:211
spdlog::details::log_msg::log_msg
log_msg()=default
spdlog
Definition:
async.h:25
spdlog::source_loc
Definition:
common.h:290
SPDLOG_INLINE
#define SPDLOG_INLINE
Definition:
common.h:42
os.h
spdlog::details::log_msg
Definition:
log_msg.h:11
log_msg.h
third_party
spdlog
include
spdlog
details
log_msg-inl.h
Generated by
1.8.17