Chrysalis - Logging
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
12
13namespace 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
#define LOGGING
Definition LoggingLibraryExport.h:11
Definition NameFlagFormatter.h:14
void format(const spdlog::details::log_msg &msg, const std::tm &tm_time, spdlog::memory_buf_t &dest) override
Definition NameFlagFormatter.cpp:15
std::unique_ptr< custom_flag_formatter > clone() const override
Definition NameFlagFormatter.cpp:25
Definition BaseConsoleUser.h:4