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

#include <pattern_formatter.h>

Inheritance diagram for spdlog::details::level_formatter:
spdlog::details::flag_formatter

Public Member Functions

 level_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 152 of file pattern_formatter.h.

Constructor & Destructor Documentation

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

Definition at line 155 of file pattern_formatter.h.

156  : flag_formatter(padinfo)
157  {
158  }

Member Function Documentation

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

Implements spdlog::details::flag_formatter.

Definition at line 160 of file pattern_formatter.h.

161  {
162  string_view_t &level_name = level::to_string_view(msg.level);
163  if (padinfo_.enabled())
164  {
165  scoped_pad p(level_name, padinfo_, dest);
167  }
168  else
169  {
171  }
172  }
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
string_view_t & to_string_view(spdlog::level::level_enum l) SPDLOG_NOEXCEPT
Definition: common.h:132
p
Definition: test.py:223
fmt::string_view string_view_t
Definition: common.h:88

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