#include <pattern_formatter.h>
Definition at line 918 of file pattern_formatter.h.
spdlog::details::full_formatter::full_formatter |
( |
padding_info |
padinfo | ) |
|
|
inlineexplicit |
Implements spdlog::details::flag_formatter.
Definition at line 926 of file pattern_formatter.h.
928 using std::chrono::duration_cast;
932 #ifndef SPDLOG_NO_DATETIME 935 auto duration =
msg.time.time_since_epoch();
936 auto secs = duration_cast<
seconds>(duration);
964 auto millis = fmt_helper::time_fraction<milliseconds>(
msg.time);
969 #else // no datetime needed 973 #ifndef SPDLOG_NO_NAME 974 if (!
msg.logger_name->empty())
986 msg.color_range_start =
dest.size();
989 msg.color_range_end =
dest.size();
994 if (!
msg.source.empty())
1000 dest.push_back(
']');
1001 dest.push_back(
' ');
void msg(const char *fmt,...)
void append_int(T n, fmt::basic_memory_buffer< char, Buffer_Size > &dest)
void pad3(T n, fmt::basic_memory_buffer< char, Buffer_Size > &dest)
void append_buf(const fmt::basic_memory_buffer< char, Buffer_Size1 > &buf, fmt::basic_memory_buffer< char, Buffer_Size2 > &dest)
second seconds
Alias for common language habits.
void append_string_view(spdlog::string_view_t view, fmt::basic_memory_buffer< char, Buffer_Size > &dest)
string_view_t & to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
millisecond milliseconds
Alias for common language habits.
void pad2(int n, fmt::basic_memory_buffer< char, Buffer_Size > &dest)
std::chrono::seconds spdlog::details::full_formatter::cache_timestamp_ {0} |
|
private |
fmt::basic_memory_buffer<char, 128> spdlog::details::full_formatter::cached_datetime_ |
|
private |
The documentation for this class was generated from the following file: