Chrysalis - Logging
Toggle main menu visibility
Loading...
Searching...
No Matches
LevelFlagFormatter.h
Go to the documentation of this file.
1
#ifndef CHRYSALIS_PLAINLEVELFLAG_H
2
#define CHRYSALIS_PLAINLEVELFLAG_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
LevelFlagFormatter
:
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_PLAINLEVELFLAG_H
LoggingLibraryExport.h
LOGGING
#define LOGGING
Definition
LoggingLibraryExport.h:11
Logging::LevelFlagFormatter
Definition
LevelFlagFormatter.h:14
Logging::LevelFlagFormatter::format
void format(const spdlog::details::log_msg &msg, const std::tm &tm_time, spdlog::memory_buf_t &dest) override
Definition
LevelFlagFormatter.cpp:15
Logging::LevelFlagFormatter::clone
std::unique_ptr< custom_flag_formatter > clone() const override
Definition
LevelFlagFormatter.cpp:24
Logging
Definition
BaseConsoleUser.h:4
logging
include
formatters
LevelFlagFormatter.h
Generated by
1.17.0