Sese Framework
x.y.z
A cross-platform framework
|
日志输出类 更多...
#include <Logger.h>
Public 类型 | |
typedef std::shared_ptr< Logger > | Ptr |
智能指针 | |
Public 成员函数 | |
Logger () noexcept | |
初始化 | |
virtual | ~Logger () noexcept=default |
void | addAppender (const AbstractAppender::Ptr &appender) noexcept |
void | removeAppender (const AbstractAppender::Ptr &appender) noexcept |
virtual void | log (const Event::Ptr &event) noexcept |
virtual void | dump (const void *buffer, size_t length) noexcept |
静态 Public 成员函数 | |
static void | addGlobalLoggerAppender (const AbstractAppender::Ptr &appender) noexcept |
static void | removeGlobalLoggerAppender (const AbstractAppender::Ptr &appender) noexcept |
Protected 属性 | |
std::shared_ptr< AbstractFormatter > | formatter |
std::shared_ptr< ConsoleAppender > | builtInAppender |
std::vector< AbstractAppender::Ptr > | appenderVector |
日志输出类
typedef std::shared_ptr<Logger> sese::record::Logger::Ptr |
智能指针
|
noexcept |
初始化
引用了 builtInAppender, sese::record::DEBUG, formatter , 以及 sese::record::INFO.
|
virtualdefaultnoexcept |
|
noexcept |
|
staticnoexcept |
|
virtualnoexcept |
|
virtualnoexcept |
输出日志
event | 日志事件 |
被 sese::record::AsyncLogger 重载.
引用了 sese::record::DEBUG, sese::record::ERR, sese::record::INFO, sese::record::ConsoleAppender::setCleanColor(), sese::record::ConsoleAppender::setDebugColor(), sese::record::ConsoleAppender::setErrorColor(), sese::record::ConsoleAppender::setInfoColor(), sese::record::ConsoleAppender::setWarnColor() , 以及 sese::record::WARN.
被这些函数引用 sese::record::LogHelper::l() , 以及 sese::record::LogHelper::log().
|
noexcept |
|
staticnoexcept |
|
protected |
被这些函数引用 sese::record::AsyncLogger::loop().
|
protected |
被这些函数引用 Logger() , 以及 sese::record::AsyncLogger::loop().
|
protected |
被这些函数引用 Logger().