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

Interface for log message formatters (Strategy Pattern) kcenon. More...

#include <string>
#include <memory>
#include <functional>
Include dependency graph for log_formatter_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::logger::format_options
 Configuration options for log formatting. More...
 
class  kcenon::logger::log_formatter_interface
 Abstract interface for log message formatters. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Typedefs

using kcenon::logger::formatter_factory = std::function<std::unique_ptr<log_formatter_interface>()>
 Factory function type for creating formatters.
 

Detailed Description

Interface for log message formatters (Strategy Pattern) kcenon.

Since
1.2.0
Version
Phase 3 - Code Quality Improvement

This interface defines the contract for formatting log messages. Implementing the Strategy pattern allows different formatting strategies to be used interchangeably, eliminating code duplication across writers.

Definition in file log_formatter_interface.h.