Class my_formatter_flag#
Defined in File MsgLogger.h
Inheritance Relationships#
Base Type#
public spdlog::custom_flag_formatter
Class Documentation#
-
class my_formatter_flag : public spdlog::custom_flag_formatter#
Custom formatter flag that is used to print verbosity levels with custom names.
Public Functions
-
inline void format(const spdlog::details::log_msg &msg, const std::tm&, spdlog::memory_buf_t &dest) override#
Format the message by adding the custom verbosity level name.
- Parameters:
msg – The message to format.
dest – The buffer to put the formatted message in.
-
inline std::unique_ptr<custom_flag_formatter> clone() const override#
Clone this.
- Returns:
A unique pointer to my_formatter_flag.
Public Static Attributes
-
static spdlog::string_view_t _levels[] = {spdlog::string_view_t("num_trace", 9), spdlog::string_view_t("trace", 5), spdlog::string_view_t("debug", 5), spdlog::string_view_t("info", 4), spdlog::string_view_t("warning", 7), spdlog::string_view_t("error", 5), spdlog::string_view_t("off", 3),}#
Stores the custom verbosity levels.
-
inline void format(const spdlog::details::log_msg &msg, const std::tm&, spdlog::memory_buf_t &dest) override#