Public Member Functions | Private Attributes | List of all members
spdlog::details::ch_formatter Class Referencefinal

#include <pattern_formatter.h>

Inheritance diagram for spdlog::details::ch_formatter:
spdlog::details::flag_formatter

Public Member Functions

 ch_formatter (char ch)
 
void format (const details::log_msg &, const std::tm &, 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
 

Private Attributes

char ch_
 

Additional Inherited Members

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

Detailed Description

Definition at line 761 of file pattern_formatter.h.

Constructor & Destructor Documentation

spdlog::details::ch_formatter::ch_formatter ( char  ch)
inlineexplicit

Definition at line 764 of file pattern_formatter.h.

765  : ch_(ch)
766  {
767  }

Member Function Documentation

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

Implements spdlog::details::flag_formatter.

Definition at line 769 of file pattern_formatter.h.

770  {
771  const size_t field_size = 1;
772  scoped_pad p(field_size, padinfo_, dest);
773  dest.push_back(ch_);
774  }
p
Definition: test.py:223

Member Data Documentation

char spdlog::details::ch_formatter::ch_
private

Definition at line 777 of file pattern_formatter.h.


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