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

#include <pattern_formatter.h>

Inheritance diagram for spdlog::details::name_formatter:
spdlog::details::flag_formatter

Public Member Functions

 name_formatter (padding_info padinfo)
 
void format (const details::log_msg &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
 

Additional Inherited Members

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

Detailed Description

Definition at line 129 of file pattern_formatter.h.

Constructor & Destructor Documentation

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

Definition at line 132 of file pattern_formatter.h.

133  : flag_formatter(padinfo)
134  {
135  }

Member Function Documentation

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

Implements spdlog::details::flag_formatter.

Definition at line 137 of file pattern_formatter.h.

138  {
139  if (padinfo_.enabled())
140  {
141  scoped_pad p(*msg.logger_name, padinfo_, dest);
142  fmt_helper::append_string_view(*msg.logger_name, dest);
143  }
144  else
145  {
146  fmt_helper::append_string_view(*msg.logger_name, dest);
147  }
148  }
void msg(const char *fmt,...)
Definition: message.cpp:107
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

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