Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
sese::record::AsyncLogger类 参考final

异步日志器 更多...

#include <AsyncLogger.h>

类 sese::record::AsyncLogger 继承关系图:
sese::record::Logger

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::FixedBuildercurrentBuffer
 
io::FixedBuildernextBuffer
 
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< AbstractFormatterformatter
 
std::shared_ptr< ConsoleAppenderbuiltInAppender
 
std::vector< AbstractAppender::PtrappenderVector
 

额外继承的成员函数

- Public 类型 继承自 sese::record::Logger
typedef std::shared_ptr< LoggerPtr
 智能指针
 
- 静态 Public 成员函数 继承自 sese::record::Logger
static void addGlobalLoggerAppender (const AbstractAppender::Ptr &appender) noexcept
 
static void removeGlobalLoggerAppender (const AbstractAppender::Ptr &appender) noexcept
 

详细描述

异步日志器

构造及析构函数说明

◆ AsyncLogger()

AsyncLogger::AsyncLogger ( )

◆ ~AsyncLogger()

AsyncLogger::~AsyncLogger ( )
overridenoexcept

成员函数说明

◆ dump()

void AsyncLogger::dump ( const void * buffer,
size_t length )
overridevirtualnoexcept

输出原始内容

参数
buffer
length

重载 sese::record::Logger .

引用了 RECORD_BUFFER_SIZE.

◆ log()

void AsyncLogger::log ( const Event::Ptr & event)
overridevirtualnoexcept

输出日志

参数
event日志事件

重载 sese::record::Logger .

引用了 RECORD_BUFFER_SIZE.

◆ loop()

类成员变量说明

◆ buffer2Ready

std::vector<io::FixedBuilder *> sese::record::AsyncLogger::buffer2Ready
protected

被这些函数引用 loop().

◆ conditionVariable

std::condition_variable sese::record::AsyncLogger::conditionVariable
protected

被这些函数引用 loop() , 以及 ~AsyncLogger().

◆ currentBuffer

io::FixedBuilder* sese::record::AsyncLogger::currentBuffer
protected

被这些函数引用 AsyncLogger(), loop() , 以及 ~AsyncLogger().

◆ isShutdown

std::atomic_bool sese::record::AsyncLogger::isShutdown {}
protected

被这些函数引用 AsyncLogger(), loop() , 以及 ~AsyncLogger().

◆ mutex

std::mutex sese::record::AsyncLogger::mutex
protected

被这些函数引用 loop().

◆ nextBuffer

io::FixedBuilder* sese::record::AsyncLogger::nextBuffer
protected

被这些函数引用 AsyncLogger(), loop() , 以及 ~AsyncLogger().

◆ thread

sese::Thread::Ptr sese::record::AsyncLogger::thread
protected

被这些函数引用 AsyncLogger() , 以及 ~AsyncLogger().


该类的文档由以下文件生成: