Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
batch_writer.h File Reference

Batch writer that accumulates log entries and writes them in batches. More...

#include "queued_writer_base.h"
#include <kcenon/logger/logger_export.h>
#include <vector>
#include <chrono>
Include dependency graph for batch_writer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::batch_writer
 Batch writer that accumulates log entries and writes them in batches. More...
 
struct  kcenon::logger::batch_writer::config
 Configuration for batch writer. More...
 
struct  kcenon::logger::batch_writer::batch_stats
 Get batch statistics. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Functions

std::unique_ptr< batch_writerkcenon::logger::make_batch_writer (log_writer_ptr writer, size_t batch_size=100, std::chrono::milliseconds flush_interval=std::chrono::milliseconds{1000})
 Factory function to create a batch writer.
 

Detailed Description

Batch writer that accumulates log entries and writes them in batches.

See also
log_writer_interface.h

Definition in file batch_writer.h.