VLink  2.3.0
A high-performance communication middleware
logger_backend.h File Reference

Asynchronous file backend used by vlink::Logger. More...

#include <cstddef>
#include <cstdint>
#include <memory>
#include <string>
#include <string_view>
#include "./functional.h"
#include "./logger.h"
#include "./message_loop.h"
Include dependency graph for logger_backend.h:

Go to the source code of this file.

Classes

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

Namespaces

 

Detailed Description

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.