VLink  2.3.0
A high-performance communication middleware
logger_backend.h 文件参考

Asynchronous file backend used by vlink::Logger. 更多...

#include <cstddef>
#include <cstdint>
#include <memory>
#include <string>
#include <string_view>
#include "./functional.h"
#include "./logger.h"
#include "./message_loop.h"
logger_backend.h 的引用(Include)关系图:

浏览源代码.

类

class  vlink::LoggerBackend
 MessageLoop-based asynchronous rotating-file backend. 更多...
 
struct  vlink::LoggerBackend::Config
 Construction-time queue, file and formatting settings. 更多...
 

命名空间

 

详细描述

Asynchronous file backend used by vlink::Logger.

The backend serialises file operations on a MessageLoop, periodically flushes through a loop-bound Timer, supports fixed-name and timestamped size rotation, and retains an optional backtrace ring. Applications normally use it when ENABLE_LOG_BACKEND is enabled; the class is also exposed for direct integration and focused backend testing.