|
Apache Log4cxx
Version 1.6.0
|
This class is used by the LOG4CXX_INFO_ASYNC and similar macros to support insertion operators. More...
#include <asyncbuffer.h>
Public Types | |
| using | StringViewType = fmt::basic_string_view<char> |
| using | FmtArgStore = fmt::dynamic_format_arg_store<fmt::format_context> |
| using | WideStringViewType = fmt::basic_string_view<wchar_t> |
| using | WideFmtArgStore = fmt::dynamic_format_arg_store<fmt::wformat_context> |
Public Member Functions | |
| AsyncBuffer () | |
| An empty buffer. | |
| AsyncBuffer (AsyncBuffer &&other) | |
A new buffer with the content of other. | |
| ~AsyncBuffer () | |
| Release resources. | |
| template<typename T> | |
| AsyncBuffer & | operator<< (const T &value) |
Append a function to this buffer that will convert value to text. | |
| bool | empty () const |
| Has no item been added to this? | |
| void | renderMessage (LogCharMessageBuffer &msg) const |
Add text version of buffered values to msg. | |
| void | clear () |
| Remove all message appenders. | |
| template<typename... Args> | |
| void | setMessage (fmt::format_string< Args... > fmt_str, Args &&... args) |
| template<typename... Args> | |
| void | setMessage (fmt::wformat_string< Args... > fmt_str, Args &&... args) |
This class is used by the LOG4CXX_INFO_ASYNC and similar macros to support insertion operators.
The class is not intended for use outside of that context.
| using log4cxx::helpers::AsyncBuffer::FmtArgStore = fmt::dynamic_format_arg_store<fmt::format_context> |
| using log4cxx::helpers::AsyncBuffer::StringViewType = fmt::basic_string_view<char> |
| using log4cxx::helpers::AsyncBuffer::WideFmtArgStore = fmt::dynamic_format_arg_store<fmt::wformat_context> |
| using log4cxx::helpers::AsyncBuffer::WideStringViewType = fmt::basic_string_view<wchar_t> |
| log4cxx::helpers::AsyncBuffer::AsyncBuffer | ( | ) |
An empty buffer.
| log4cxx::helpers::AsyncBuffer::AsyncBuffer | ( | AsyncBuffer && | other | ) |
A new buffer with the content of other.
| log4cxx::helpers::AsyncBuffer::~AsyncBuffer | ( | ) |
Release resources.
| void log4cxx::helpers::AsyncBuffer::clear | ( | ) |
Remove all message appenders.
| bool log4cxx::helpers::AsyncBuffer::empty | ( | ) | const |
Has no item been added to this?
|
inline |
Append a function to this buffer that will convert value to text.
| value | type must be copy-constructable |
| void log4cxx::helpers::AsyncBuffer::renderMessage | ( | LogCharMessageBuffer & | msg | ) | const |
Add text version of buffered values to msg.
|
inline |
|
inline |