NVIDIA DeepStream SDK API Reference

9.2 Release
logs::LoggerProvider Class Referenceabstract

Detailed Description

Creates new Logger instances.

Definition at line 23 of file includes/opentelemetry/logs/logger_provider.h.

Inheritance diagram for logs::LoggerProvider:

Public Member Functions

virtual ~LoggerProvider ()=default
 
virtual nostd::shared_ptr< Logger > GetLogger (nostd::string_view logger_name, nostd::string_view library_name="", nostd::string_view library_version="", nostd::string_view schema_url="", const common::KeyValueIterable &attributes=common::NoopKeyValueIterable())=0
 Gets or creates a named Logger instance. More...
 
nostd::shared_ptr< Logger > GetLogger (nostd::string_view logger_name, nostd::string_view library_name, nostd::string_view library_version, nostd::string_view schema_url, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes)
 
template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr< Logger > GetLogger (nostd::string_view logger_name, nostd::string_view library_name, nostd::string_view library_version, nostd::string_view schema_url, const T &attributes)
 
virtual ~LoggerProvider ()=default
 
virtual nostd::shared_ptr< Logger > GetLogger (nostd::string_view logger_name, nostd::string_view library_name="", nostd::string_view library_version="", nostd::string_view schema_url="", const common::KeyValueIterable &attributes=common::NoopKeyValueIterable())=0
 Gets or creates a named Logger instance. More...
 
nostd::shared_ptr< Logger > GetLogger (nostd::string_view logger_name, nostd::string_view library_name, nostd::string_view library_version, nostd::string_view schema_url, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes)
 
template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr< Logger > GetLogger (nostd::string_view logger_name, nostd::string_view library_name, nostd::string_view library_version, nostd::string_view schema_url, const T &attributes)
 

Constructor & Destructor Documentation

◆ ~LoggerProvider() [1/2]

virtual logs::LoggerProvider::~LoggerProvider ( )
virtualdefault

◆ ~LoggerProvider() [2/2]

virtual logs::LoggerProvider::~LoggerProvider ( )
virtualdefault

Member Function Documentation

◆ GetLogger() [1/6]

template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr<Logger> logs::LoggerProvider::GetLogger ( nostd::string_view  logger_name,
nostd::string_view  library_name,
nostd::string_view  library_version,
nostd::string_view  schema_url,
const T &  attributes 
)
inline

◆ GetLogger() [2/6]

template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr<Logger> logs::LoggerProvider::GetLogger ( nostd::string_view  logger_name,
nostd::string_view  library_name,
nostd::string_view  library_version,
nostd::string_view  schema_url,
const T &  attributes 
)
inline

◆ GetLogger() [3/6]

nostd::shared_ptr<Logger> logs::LoggerProvider::GetLogger ( nostd::string_view  logger_name,
nostd::string_view  library_name,
nostd::string_view  library_version,
nostd::string_view  schema_url,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes 
)
inline

◆ GetLogger() [4/6]

nostd::shared_ptr<Logger> logs::LoggerProvider::GetLogger ( nostd::string_view  logger_name,
nostd::string_view  library_name,
nostd::string_view  library_version,
nostd::string_view  schema_url,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes 
)
inline

◆ GetLogger() [5/6]

virtual nostd::shared_ptr<Logger> logs::LoggerProvider::GetLogger ( nostd::string_view  logger_name,
nostd::string_view  library_name = "",
nostd::string_view  library_version = "",
nostd::string_view  schema_url = "",
const common::KeyValueIterable &  attributes = common::NoopKeyValueIterable() 
)
pure virtual

Gets or creates a named Logger instance.

Optionally a version can be passed to create a named and versioned Logger instance.

Optionally a configuration file name can be passed to create a configuration for the Logger instance.

Implemented in logs::NoopLoggerProvider, and logs::NoopLoggerProvider.

◆ GetLogger() [6/6]

virtual nostd::shared_ptr<Logger> logs::LoggerProvider::GetLogger ( nostd::string_view  logger_name,
nostd::string_view  library_name = "",
nostd::string_view  library_version = "",
nostd::string_view  schema_url = "",
const common::KeyValueIterable &  attributes = common::NoopKeyValueIterable() 
)
pure virtual

Gets or creates a named Logger instance.

Optionally a version can be passed to create a named and versioned Logger instance.

Optionally a configuration file name can be passed to create a configuration for the Logger instance.

Implemented in logs::NoopLoggerProvider, and logs::NoopLoggerProvider.


The documentation for this class was generated from the following file: