NVIDIA DeepStream SDK API Reference

9.2 Release
sdk::common::internal_log::GlobalLogHandler Class Reference

Detailed Description

Stores the singleton global LogHandler.

Definition at line 98 of file includes/opentelemetry/sdk/common/global_log_handler.h.

Static Public Member Functions

static nostd::shared_ptr< LogHandler > GetLogHandler () noexcept
 Returns the singleton LogHandler. More...
 
static void SetLogHandler (const nostd::shared_ptr< LogHandler > &eh) noexcept
 Changes the singleton LogHandler. More...
 
static LogLevel GetLogLevel () noexcept
 Returns the singleton log level. More...
 
static void SetLogLevel (LogLevel level) noexcept
 Changes the singleton Log level. More...
 
static nostd::shared_ptr< LogHandler > GetLogHandler () noexcept
 Returns the singleton LogHandler. More...
 
static void SetLogHandler (const nostd::shared_ptr< LogHandler > &eh) noexcept
 Changes the singleton LogHandler. More...
 
static LogLevel GetLogLevel () noexcept
 Returns the singleton log level. More...
 
static void SetLogLevel (LogLevel level) noexcept
 Changes the singleton Log level. More...
 

Member Function Documentation

◆ GetLogHandler() [1/2]

static nostd::shared_ptr<LogHandler> sdk::common::internal_log::GlobalLogHandler::GetLogHandler ( )
staticnoexcept

Returns the singleton LogHandler.

By default, a default LogHandler is returned.

◆ GetLogHandler() [2/2]

static nostd::shared_ptr<LogHandler> sdk::common::internal_log::GlobalLogHandler::GetLogHandler ( )
staticnoexcept

Returns the singleton LogHandler.

By default, a default LogHandler is returned.

◆ GetLogLevel() [1/2]

static LogLevel sdk::common::internal_log::GlobalLogHandler::GetLogLevel ( )
staticnoexcept

Returns the singleton log level.

By default, a default log level is returned.

◆ GetLogLevel() [2/2]

static LogLevel sdk::common::internal_log::GlobalLogHandler::GetLogLevel ( )
staticnoexcept

Returns the singleton log level.

By default, a default log level is returned.

◆ SetLogHandler() [1/2]

static void sdk::common::internal_log::GlobalLogHandler::SetLogHandler ( const nostd::shared_ptr< LogHandler > &  eh)
staticnoexcept

Changes the singleton LogHandler.

This should be called once at the start of application before creating any Provider instance.

◆ SetLogHandler() [2/2]

static void sdk::common::internal_log::GlobalLogHandler::SetLogHandler ( const nostd::shared_ptr< LogHandler > &  eh)
staticnoexcept

Changes the singleton LogHandler.

This should be called once at the start of application before creating any Provider instance.

◆ SetLogLevel() [1/2]

static void sdk::common::internal_log::GlobalLogHandler::SetLogLevel ( LogLevel  level)
staticnoexcept

Changes the singleton Log level.

This should be called once at the start of application before creating any Provider instance.

◆ SetLogLevel() [2/2]

static void sdk::common::internal_log::GlobalLogHandler::SetLogLevel ( LogLevel  level)
staticnoexcept

Changes the singleton Log level.

This should be called once at the start of application before creating any Provider instance.


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