27#include <fmt/format.h>
49 std::string_view body)
override {
50 std::string_view filename = source.
file_path();
51 const std::size_t last_separator_pos = filename.find_last_of(
"/\\");
52 if (last_separator_pos != std::string_view::npos) {
53 filename = filename.substr(last_separator_pos + 1);
56 fmt::format_to(std::back_inserter(buffer),
57 FMT_STRING(
"[{}] [{}] [{}] {} ({}:{}, {})"), time,
Class to hold information of source codes.
constexpr auto line() const -> index_type
Get the line number.
constexpr auto function_name() const -> std::string_view
Get the function name.
constexpr auto file_path() const -> std::string_view
Get the file path.
Definition of get_output_log_level_str function.
Definition of log_level enumeration.
log_level
Enumeration of log levels.
Definition of source_info_view class.
Definition of time_stamp class.