backtrace sink and refactoring

This commit is contained in:
gabime
2019-08-22 19:36:47 +03:00
parent 74df115fc1
commit 6b527a50dd
6 changed files with 181 additions and 49 deletions

View File

@@ -4,16 +4,18 @@
#pragma once
#include "spdlog/common.h"
#include <string>
namespace spdlog {
namespace details {
struct log_msg
{
log_msg() = default;
log_msg(source_loc loc, string_view_t logger_name, level::level_enum lvl, string_view_t msg);
log_msg(string_view_t logger_name, level::level_enum lvl, string_view_t msg);
log_msg(const log_msg &other) = default;
const string_view_t logger_name;
string_view_t logger_name;
level::level_enum level{level::off};
log_clock::time_point time;
size_t thread_id{0};
@@ -23,7 +25,7 @@ struct log_msg
mutable size_t color_range_end{0};
source_loc source;
const string_view_t payload;
string_view_t payload;
};
} // namespace details
} // namespace spdlog