Photon 1.0.0
Loading...
Searching...
No Matches
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
9namespace spdlog
10{
11 namespace details
12 {
14 {
15 log_msg() = default;
16 log_msg(log_clock::time_point log_time, source_loc loc, string_view_t logger_name, level::level_enum lvl, string_view_t msg);
19 log_msg(const log_msg& other) = default;
20 log_msg& operator=(const log_msg& other) = default;
21
23 level::level_enum level{level::off};
24 log_clock::time_point time;
25 size_t thread_id{0};
26
27 // wrapping the formatted text with color (updated by pattern_formatter).
28 mutable size_t color_range_start{0};
29 mutable size_t color_range_end{0};
30
33 };
34 } // namespace details
35} // namespace spdlog
36
37#ifdef SPDLOG_HEADER_ONLY
38#include "log_msg-inl.h"
39#endif
#define SPDLOG_API
Definition common.h:45
level_enum
Definition common.h:233
Definition async.h:26
fmt::basic_string_view< char > string_view_t
Definition common.h:172
Definition log_msg.h:14
log_msg & operator=(const log_msg &other)=default
log_clock::time_point time
Definition log_msg.h:24
string_view_t payload
Definition log_msg.h:32
log_msg(log_clock::time_point log_time, source_loc loc, string_view_t logger_name, level::level_enum lvl, string_view_t msg)
source_loc source
Definition log_msg.h:31
string_view_t logger_name
Definition log_msg.h:22
log_msg(const log_msg &other)=default
Definition common.h:312
annotation details
Definition tag_strings.h:125