Chrysalis - Logging
Toggle main menu visibility
Loading...
Searching...
No Matches
NameFlagFormatter.h
Go to the documentation of this file.
1
#ifndef CHRYSALIS_COLOREDNAMEFLAG_H
2
#define CHRYSALIS_COLOREDNAMEFLAG_H
3
4
#include <ctime>
5
#include <memory>
6
7
#include <spdlog/common.h>
8
#include <spdlog/details/log_msg.h>
9
#include <spdlog/pattern_formatter.h>
10
11
#include "
LoggingLibraryExport.h
"
12
13
namespace
Logging
{
14
class
LOGGING
NameFlagFormatter
:
public
spdlog::custom_flag_formatter {
15
public
:
16
void
format
(
const
spdlog::details::log_msg& msg,
const
std::tm& tm_time, spdlog::memory_buf_t& dest)
override
;
17
[[nodiscard]] std::unique_ptr<custom_flag_formatter>
clone
()
const override
;
18
};
19
}
20
21
#endif
//CHRYSALIS_COLOREDNAMEFLAG_H
LoggingLibraryExport.h
LOGGING
#define LOGGING
Definition
LoggingLibraryExport.h:11
Logging::NameFlagFormatter
Definition
NameFlagFormatter.h:14
Logging::NameFlagFormatter::format
void format(const spdlog::details::log_msg &msg, const std::tm &tm_time, spdlog::memory_buf_t &dest) override
Definition
NameFlagFormatter.cpp:15
Logging::NameFlagFormatter::clone
std::unique_ptr< custom_flag_formatter > clone() const override
Definition
NameFlagFormatter.cpp:25
Logging
Definition
BaseConsoleUser.h:4
logging
include
formatters
NameFlagFormatter.h
Generated by
1.17.0