Agora
1.2.0
Agora project
|
#include <pattern_formatter.h>
Public Types | |
using | custom_flags = std::unordered_map< char, std::unique_ptr< custom_flag_formatter > > |
Public Member Functions | |
pattern_formatter (std::string pattern, pattern_time_type time_type=pattern_time_type::local, std::string eol=spdlog::details::os::default_eol, custom_flags custom_user_flags=custom_flags()) | |
pattern_formatter (pattern_time_type time_type=pattern_time_type::local, std::string eol=spdlog::details::os::default_eol) | |
pattern_formatter (const pattern_formatter &other)=delete | |
pattern_formatter & | operator= (const pattern_formatter &other)=delete |
std::unique_ptr< formatter > | clone () const override |
void | format (const details::log_msg &msg, memory_buf_t &dest) override |
template<typename T , typename... Args> | |
pattern_formatter & | add_flag (char flag, Args &&... args) |
void | set_pattern (std::string pattern) |
template<typename Padder > | |
SPDLOG_INLINE void | handle_flag_ (char flag, details::padding_info padding) |
Public Member Functions inherited from spdlog::formatter | |
virtual | ~formatter ()=default |
Private Member Functions | |
std::tm | get_time_ (const details::log_msg &msg) |
template<typename Padder > | |
void | handle_flag_ (char flag, details::padding_info padding) |
void | compile_pattern_ (const std::string &pattern) |
Static Private Member Functions | |
static details::padding_info | handle_padspec_ (std::string::const_iterator &it, std::string::const_iterator end) |
Private Attributes | |
std::string | pattern_ |
std::string | eol_ |
pattern_time_type | pattern_time_type_ |
bool | need_localtime_ |
std::tm | cached_tm_ |
std::chrono::seconds | last_log_secs_ |
std::vector< std::unique_ptr< details::flag_formatter > > | formatters_ |
custom_flags | custom_handlers_ |
using spdlog::pattern_formatter::custom_flags = std::unordered_map<char, std::unique_ptr<custom_flag_formatter> > |
|
explicit |
|
explicit |
|
delete |
|
inline |
|
overridevirtual |
Implements spdlog::formatter.
|
private |
|
overridevirtual |
|
private |
|
private |
SPDLOG_INLINE void spdlog::pattern_formatter::handle_flag_ | ( | char | flag, |
details::padding_info | padding | ||
) |
|
staticprivate |
|
delete |
SPDLOG_INLINE void spdlog::pattern_formatter::set_pattern | ( | std::string | pattern | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |