![]() |
LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
A spdlog formatter which wraps another formatter and makes sure that if there are new lines (\n) in the log message, that the log message is still properly indented.
More...
#include <lf/base/spdlog_utils.h>
Public Member Functions | |
| LineFeedFormatter (std::unique_ptr< spdlog::formatter > wrapped_formatter) | |
| LineFeedFormatter (const LineFeedFormatter &)=delete | |
| LineFeedFormatter (LineFeedFormatter &&)=default | |
| LineFeedFormatter & | operator= (const LineFeedFormatter &)=delete |
| LineFeedFormatter & | operator= (LineFeedFormatter &&)=default |
| ~LineFeedFormatter () override=default | |
| void | format (const spdlog::details::log_msg &msg, spdlog::memory_buf_t &dest) override |
| std::unique_ptr< formatter > | clone () const override |
Private Attributes | |
| std::unique_ptr< spdlog::formatter > | wrapped_formatter_ |
A spdlog formatter which wraps another formatter and makes sure that if there are new lines (\n) in the log message, that the log message is still properly indented.
Output:
Output:
Definition at line 86 of file spdlog_utils.h.
|
explicit |
Definition at line 23 of file spdlog_utils.cc.
References wrapped_formatter_.
Referenced by LineFeedFormatter(), LineFeedFormatter(), operator=(), and operator=().
|
delete |
References LineFeedFormatter().
|
default |
References LineFeedFormatter().
|
overridedefault |
|
nodiscardoverride |
Definition at line 66 of file spdlog_utils.cc.
References wrapped_formatter_.
|
override |
Definition at line 27 of file spdlog_utils.cc.
References wrapped_formatter_.
|
delete |
References LineFeedFormatter().
|
default |
References LineFeedFormatter().
|
private |
Definition at line 103 of file spdlog_utils.h.
Referenced by clone(), format(), and LineFeedFormatter().