Public Member Functions | List of all members
spdlog::details::A_formatter Class Reference

#include <pattern_formatter.h>

Inheritance diagram for spdlog::details::A_formatter:
spdlog::details::flag_formatter

Public Member Functions

 A_formatter (padding_info padinfo)
 
void format (const details::log_msg &, const std::tm &tm_time, fmt::memory_buffer &dest) override
 
- Public Member Functions inherited from spdlog::details::flag_formatter
 flag_formatter (padding_info padinfo)
 
 flag_formatter ()=default
 
virtual ~flag_formatter ()=default
 

Additional Inherited Members

- Protected Attributes inherited from spdlog::details::flag_formatter
padding_info padinfo_
 

Detailed Description

Definition at line 226 of file pattern_formatter.h.

Constructor & Destructor Documentation

spdlog::details::A_formatter::A_formatter ( padding_info  padinfo)
inlineexplicit

Definition at line 229 of file pattern_formatter.h.

230  : flag_formatter(padinfo)
231  {
232  }

Member Function Documentation

void spdlog::details::A_formatter::format ( const details::log_msg ,
const std::tm &  tm_time,
fmt::memory_buffer dest 
)
inlineoverridevirtual

Implements spdlog::details::flag_formatter.

Definition at line 234 of file pattern_formatter.h.

235  {
236  string_view_t field_value{full_days[tm_time.tm_wday]};
237  scoped_pad p(field_value, padinfo_, dest);
238  fmt_helper::append_string_view(field_value, dest);
239  }
void append_string_view(spdlog::string_view_t view, fmt::basic_memory_buffer< char, Buffer_Size > &dest)
Definition: fmt_helper.h:30
p
Definition: test.py:223
fmt::string_view string_view_t
Definition: common.h:88
static const char * full_days[]

The documentation for this class was generated from the following file: