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

Environment variable-based configuration strategy. More...

#include "config_strategy_interface.h"
#include "../logger_config.h"
#include <cstdlib>
#include <string>
#include <algorithm>
Include dependency graph for environment_strategy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::logger::environment_strategy
 Configuration strategy based on environment variables. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 

Detailed Description

Environment variable-based configuration strategy.

Since
2.0.0

Configures the logger based on environment variables:

  • LOG_LEVEL: Log level (trace, debug, info, warn, error, fatal)
  • LOG_ASYNC: Async mode (true/false, 1/0)
  • LOG_BUFFER_SIZE: Buffer size in bytes
  • LOG_BATCH_SIZE: Batch size for processing
  • LOG_FLUSH_INTERVAL: Flush interval in milliseconds
  • LOG_COLOR: Enable color output (true/false, 1/0)
  • LOG_METRICS: Enable metrics collection (true/false, 1/0)

Definition in file environment_strategy.h.