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

Abstract base class for all log output writers kcenon. More...

#include <string>
#include <chrono>
#include <kcenon/common/interfaces/logger_interface.h>
#include <kcenon/common/patterns/result.h>
#include <kcenon/logger/core/error_codes.h>
#include <kcenon/logger/logger_export.h>
#include "../interfaces/log_writer_interface.h"
#include "../interfaces/log_entry.h"
#include "../interfaces/log_formatter_interface.h"
Include dependency graph for base_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::base_writer
 Abstract base class for all log output writers. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Detailed Description

Abstract base class for all log output writers kcenon.

Since
1.0.0

This file defines the abstract base class for all log writers in the system. Writers are responsible for outputting formatted log messages to various destinations such as console, files, network endpoints, databases, or custom targets.

The base_writer class provides:

  • A common interface for all writer implementations
  • Compatibility layer between legacy and modern APIs
  • Built-in formatting utilities for consistent output
  • Color support for terminals that support ANSI codes
  • IMonitorable implementation for observability (Phase 2.2.5)
Note
Writers must be thread-safe if used in async logging mode.

Definition in file base_writer.h.