|
iceberg-cpp
|
Registry of logger factories, mirroring MetricsReporters. More...
#include <loggers.h>
Static Public Member Functions | |
| static Result< std::unique_ptr< Logger > > | Load (const std::unordered_map< std::string, std::string > &properties) |
| Construct and initialize a logger from properties. | |
| static Status | Register (std::string_view logger_type, LoggerFactory factory) |
Register a factory for logger_type (overwrites any existing). | |
Registry of logger factories, mirroring MetricsReporters.
Built-in factories: "noop", "cerr", and (only when built with ICEBERG_SPDLOG) "spdlog". When the "logger-impl" property is absent, the default is "spdlog" if compiled in, otherwise "cerr" – an intentional divergence from the metrics registry's noop default (we want logs by default).