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

High-performance, thread-safe logging system with asynchronous capabilities. More...

#include <memory>
#include <vector>
#include <atomic>
#include <thread>
#include <string_view>
#include "thread_integration_detector.h"
#include <kcenon/common/interfaces/logger_interface.h>
#include "error_codes.h"
#include "metrics/logger_metrics.h"
#include "../backends/integration_backend.h"
#include <kcenon/logger/interfaces/logger_types.h>
#include <kcenon/logger/interfaces/log_entry.h>
#include <kcenon/logger/interfaces/log_writer_interface.h>
#include <kcenon/logger/logger_export.h>
#include <kcenon/logger/otlp/otel_context.h>
#include <kcenon/logger/sampling/sampling_config.h>
#include <kcenon/logger/security/signal_manager.h>
#include "structured_log_builder.h"
#include "unified_log_context.h"
#include "../routing/log_router.h"
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::logger
 Main logger implementation providing high-performance logging facilities. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 
namespace  kcenon::logger::sampling
 

Typedefs

using kcenon::logger::health_status = logger_system::health_status
 
using kcenon::logger::overflow_policy = logger_system::overflow_policy
 
using kcenon::logger::logger_metrics = metrics::logger_performance_stats
 
using kcenon::logger::performance_metrics = metrics::logger_performance_stats
 

Enumerations

enum class  kcenon::logger::metric_type {
  kcenon::logger::gauge , kcenon::logger::counter , kcenon::logger::histogram , kcenon::logger::counter ,
  kcenon::logger::gauge , kcenon::logger::histogram , kcenon::logger::summary
}
 Types of metrics that can be recorded by the logger. More...
 

Detailed Description

High-performance, thread-safe logging system with asynchronous capabilities.

Author
kcenon
Since
1.0.0

This file defines the main logger class that provides a comprehensive logging solution with support for multiple output destinations, asynchronous processing, metrics collection, and dependency injection. The logger is designed to be thread-safe and supports both synchronous and asynchronous operation modes.

Note
The logger integrates with the thread_system when USE_THREAD_SYSTEM is defined, providing seamless compatibility with the broader thread management infrastructure.

Definition in file logger.h.