Public Member Functions | List of all members
spdlog::details::Y_formatter Class Referencefinal

#include <pattern_formatter.h>

Inheritance diagram for spdlog::details::Y_formatter:
spdlog::details::flag_formatter

Public Member Functions

 Y_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 351 of file pattern_formatter.h.

Constructor & Destructor Documentation

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

Definition at line 354 of file pattern_formatter.h.

355  : flag_formatter(padinfo){};

Member Function Documentation

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

Implements spdlog::details::flag_formatter.

Definition at line 357 of file pattern_formatter.h.

358  {
359  const size_t field_size = 4;
360  scoped_pad p(field_size, padinfo_, dest);
361  fmt_helper::append_int(tm_time.tm_year + 1900, dest);
362  }
void append_int(T n, fmt::basic_memory_buffer< char, Buffer_Size > &dest)
Definition: fmt_helper.h:40
p
Definition: test.py:223

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