Chrysalis - Logging
Toggle main menu visibility
Loading...
Searching...
No Matches
ColoredNameFlagFormatter.h
Go to the documentation of this file.
1
#ifndef CHRYSALIS_COLOREDNAMEFLAGFORMATTER_H
2
#define CHRYSALIS_COLOREDNAMEFLAGFORMATTER_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
#include "
formatters/NameFlagFormatter.h
"
13
14
namespace
Logging
{
15
class
LOGGING
ColoredNameFlagFormatter
:
public
NameFlagFormatter
{
16
public
:
17
void
format
(
const
spdlog::details::log_msg& msg,
const
std::tm& tm_time, spdlog::memory_buf_t& dest)
override
;
18
[[nodiscard]] std::unique_ptr<custom_flag_formatter>
clone
()
const override
;
19
};
20
}
21
22
#endif
//CHRYSALIS_COLOREDNAMEFLAGFORMATTER_H
LoggingLibraryExport.h
LOGGING
#define LOGGING
Definition
LoggingLibraryExport.h:11
NameFlagFormatter.h
Logging::ColoredNameFlagFormatter
Definition
ColoredNameFlagFormatter.h:15
Logging::ColoredNameFlagFormatter::clone
std::unique_ptr< custom_flag_formatter > clone() const override
Definition
ColoredNameFlagFormatter.cpp:38
Logging::ColoredNameFlagFormatter::format
void format(const spdlog::details::log_msg &msg, const std::tm &tm_time, spdlog::memory_buf_t &dest) override
Definition
ColoredNameFlagFormatter.cpp:18
Logging::NameFlagFormatter
Definition
NameFlagFormatter.h:14
Logging
Definition
BaseConsoleUser.h:4
logging
include
formatters
ColoredNameFlagFormatter.h
Generated by
1.17.0