mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
![]()
6 years ago
|
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
||
![]()
6 years ago
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||
|
|
||
![]()
6 years ago
|
#include <spdlog/details/log_msg.h>
|
||
|
#include <spdlog/details/os.h>
|
||
![]()
6 years ago
|
|
||
![]()
6 years ago
|
namespace spdlog {
|
||
|
namespace details {
|
||
|
|
||
![]()
5 years ago
|
SPDLOG_INLINE log_msg::log_msg(spdlog::log_clock::time_point log_time, spdlog::source_loc loc, string_view_t a_logger_name,
|
||
|
spdlog::level::level_enum lvl, spdlog::string_view_t msg)
|
||
![]()
6 years ago
|
: logger_name(a_logger_name)
|
||
![]()
7 years ago
|
, level(lvl)
|
||
![]()
5 years ago
|
, time(log_time)
|
||
![]()
7 years ago
|
#ifndef SPDLOG_NO_THREAD_ID
|
||
|
, thread_id(os::thread_id())
|
||
|
#endif
|
||
|
, source(loc)
|
||
![]()
6 years ago
|
, payload(msg)
|
||
![]()
6 years ago
|
{}
|
||
![]()
7 years ago
|
|
||
![]()
5 years ago
|
SPDLOG_INLINE log_msg::log_msg(
|
||
|
spdlog::source_loc loc, string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
|
||
|
: log_msg(os::now(), loc, a_logger_name, lvl, msg)
|
||
|
{}
|
||
|
|
||
![]()
6 years ago
|
SPDLOG_INLINE log_msg::log_msg(string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
|
||
![]()
5 years ago
|
: log_msg(os::now(), source_loc{}, a_logger_name, lvl, msg)
|
||
![]()
6 years ago
|
{}
|
||
|
|
||
|
} // namespace details
|
||
|
} // namespace spdlog
|