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

Optimized batch processing engine for log entries. More...

#include "lockfree_queue.h"
#include <kcenon/logger/interfaces/log_entry.h>
#include <kcenon/logger/writers/base_writer.h>
#include <kcenon/logger/core/error_codes.h>
#include <kcenon/common/interfaces/logger_interface.h>
#include <vector>
#include <chrono>
#include <atomic>
#include <memory>
#include <functional>
#include <mutex>
#include <condition_variable>
Include dependency graph for batch_processor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::async::batch_processor
 Advanced batch processor with dynamic sizing and back-pressure handling. More...
 
struct  kcenon::logger::async::batch_processor::config
 Configuration for batch processor. More...
 
struct  kcenon::logger::async::batch_processor::batch_entry
 Batch entry structure. More...
 
struct  kcenon::logger::async::batch_processor::processing_stats
 Processing statistics. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 
namespace  kcenon::logger::async
 

Functions

std::unique_ptr< batch_processorkcenon::logger::async::make_batch_processor (log_writer_ptr writer, const batch_processor::config &cfg=batch_processor::config{})
 Factory function to create a batch processor.
 

Detailed Description

Optimized batch processing engine for log entries.

This file provides an enhanced batch processor with dynamic sizing, back-pressure handling, and optimized flush conditions.

Definition in file batch_processor.h.