iceberg-cpp
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Variables
loggers.h File Reference

Property-driven registry/factory for Logger backends. More...

#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include "iceberg/iceberg_export.h"
#include "iceberg/logging/logger.h"
#include "iceberg/result.h"

Go to the source code of this file.

Classes

class  iceberg::Loggers
 Registry of logger factories, mirroring MetricsReporters. More...
 

Namespaces

namespace  iceberg
 Core Apache Iceberg C++ APIs.
 

Typedefs

using iceberg::LoggerFactory = std::function< Result< std::unique_ptr< Logger > >(const std::unordered_map< std::string, std::string > &properties)>
 Factory constructing a Logger from catalog-style properties.
 

Variables

constexpr std::string_view iceberg::kLoggerImpl = "logger-impl"
 Property key selecting the logger implementation.
 
constexpr std::string_view iceberg::kLoggerTypeNoop = "noop"
 Built-in logger type identifiers.
 
constexpr std::string_view iceberg::kLoggerTypeCerr = "cerr"
 
constexpr std::string_view iceberg::kLoggerTypeSpdlog = "spdlog"
 

Detailed Description

Property-driven registry/factory for Logger backends.