Sese Framework
x.y.z
A cross-platform framework
|
分块文件日志输出源类 更多...
#include <BlockAppender.h>
Public 成员函数 | |
BlockAppender (size_t block_max_size, Level level=Level::DEBUG) | |
~BlockAppender () noexcept override | |
void | dump (const char *buffer, size_t size) noexcept override |
Public 成员函数 继承自 sese::record::AbstractAppender | |
AbstractAppender () noexcept=default | |
virtual | ~AbstractAppender () noexcept=default |
AbstractAppender (Level level) noexcept | |
Level | getLevel () const noexcept |
void | setLevel (Level lv) noexcept |
Private 属性 | |
size_t | size = 0 |
std::mutex | mutex |
size_t | maxSize = 0 |
io::BufferedStream::Ptr | bufferedStream |
io::FileStream::Ptr | fileStream |
额外继承的成员函数 | |
Public 类型 继承自 sese::record::AbstractAppender | |
typedef std::shared_ptr< AbstractAppender > | Ptr |
Protected 属性 继承自 sese::record::AbstractAppender | |
Level | level = Level::DEBUG |
输出阈值 | |
分块文件日志输出源类
|
explicit |
初始化分块参数
block_max_size | 分块的预定大小,此参数在非 DEBUG 模式下具有最小值限制,至少为 1000 * 1024,即 1MB |
level | 等级阈值 |
引用了 bufferedStream, sese::io::FileStream::create(), fileStream, getDateTimeString(), maxSize , 以及 sese::io::FileStream::T_WRITE_TRUNC.
|
overridenoexcept |
引用了 bufferedStream , 以及 fileStream.
|
overridevirtualnoexcept |
|
private |
被这些函数引用 BlockAppender() , 以及 ~BlockAppender().
|
private |
被这些函数引用 BlockAppender() , 以及 ~BlockAppender().
|
private |
被这些函数引用 BlockAppender().
|
private |
|
private |