Sese Framework
x.y.z
A cross-platform framework
|
异步日志器 更多...
#include <AsyncLogger.h>
Public 成员函数 | |
AsyncLogger () | |
~AsyncLogger () noexcept override | |
void | log (const Event::Ptr &event) noexcept override |
void | dump (const void *buffer, size_t length) noexcept override |
void | loop () noexcept |
Public 成员函数 继承自 sese::record::Logger | |
Logger () noexcept | |
初始化 | |
virtual | ~Logger () noexcept=default |
void | addAppender (const AbstractAppender::Ptr &appender) noexcept |
void | removeAppender (const AbstractAppender::Ptr &appender) noexcept |
Protected 属性 | |
io::FixedBuilder * | currentBuffer |
io::FixedBuilder * | nextBuffer |
std::vector< io::FixedBuilder * > | buffer2Ready |
std::mutex | mutex |
std::condition_variable | conditionVariable |
std::atomic_bool | isShutdown {} |
sese::Thread::Ptr | thread |
Protected 属性 继承自 sese::record::Logger | |
std::shared_ptr< AbstractFormatter > | formatter |
std::shared_ptr< ConsoleAppender > | builtInAppender |
std::vector< AbstractAppender::Ptr > | appenderVector |
额外继承的成员函数 | |
Public 类型 继承自 sese::record::Logger | |
typedef std::shared_ptr< Logger > | Ptr |
智能指针 | |
静态 Public 成员函数 继承自 sese::record::Logger | |
static void | addGlobalLoggerAppender (const AbstractAppender::Ptr &appender) noexcept |
static void | removeGlobalLoggerAppender (const AbstractAppender::Ptr &appender) noexcept |
异步日志器
AsyncLogger::AsyncLogger | ( | ) |
引用了 currentBuffer, isShutdown, loop(), nextBuffer, RECORD_BUFFER_SIZE , 以及 thread.
|
overridenoexcept |
引用了 conditionVariable, currentBuffer, isShutdown, nextBuffer , 以及 thread.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
noexcept |
|
protected |
被这些函数引用 loop().
|
protected |
被这些函数引用 loop() , 以及 ~AsyncLogger().
|
protected |
被这些函数引用 AsyncLogger(), loop() , 以及 ~AsyncLogger().
|
protected |
被这些函数引用 AsyncLogger(), loop() , 以及 ~AsyncLogger().
|
protected |
被这些函数引用 loop().
|
protected |
被这些函数引用 AsyncLogger(), loop() , 以及 ~AsyncLogger().
|
protected |
被这些函数引用 AsyncLogger() , 以及 ~AsyncLogger().