Agora
1.2.0
Agora project
|
Go to the documentation of this file.
17 #include <unordered_map>
69 virtual std::unique_ptr<custom_flag_formatter> clone()
const = 0;
73 flag_formatter::padinfo_ = padding;
80 using custom_flags = std::unordered_map<char, std::unique_ptr<custom_flag_formatter>>;
91 std::unique_ptr<formatter> clone()
const override;
94 template<
typename T,
typename... Args>
97 custom_handlers_[flag] = details::make_unique<T>(std::forward<Args>(args)...);
109 std::vector<std::unique_ptr<details::flag_formatter>>
formatters_;
113 template<
typename Padder>
121 void compile_pattern_(
const std::string &pattern);
125 #ifdef SPDLOG_HEADER_ONLY
Definition: pattern_formatter.h:23
padding_info(size_t width, padding_info::pad_side side, bool truncate)
Definition: pattern_formatter.h:33
SPDLOG_INLINE void set_pattern(std::string pattern, pattern_time_type time_type)
Definition: spdlog-inl.h:30
bool truncate_
Definition: pattern_formatter.h:46
pad_side
Definition: pattern_formatter.h:25
bool enabled_
Definition: pattern_formatter.h:47
pad_side side_
Definition: pattern_formatter.h:45
static const SPDLOG_CONSTEXPR char * default_eol
Definition: os.h:32
pattern_time_type
Definition: common.h:267
bool enabled() const
Definition: pattern_formatter.h:40
size_t width_
Definition: pattern_formatter.h:44
#define SPDLOG_API
Definition: common.h:40
std::string format(const T &value)
Definition: utils.h:15