NVIDIA DeepStream SDK API Reference

9.2 Release
sdk::logs::Logger Class Referencefinal

Detailed Description

Definition at line 25 of file includes/opentelemetry/sdk/logs/logger.h.

Inheritance diagram for sdk::logs::Logger:
Collaboration diagram for sdk::logs::Logger:

Public Member Functions

 Logger (opentelemetry::nostd::string_view name, std::shared_ptr< LoggerContext > context, std::unique_ptr< instrumentationscope::InstrumentationScope > instrumentation_scope=instrumentationscope::InstrumentationScope::Create("")) noexcept
 Initialize a new logger. More...
 
const opentelemetry::nostd::string_view GetName () noexcept override
 Returns the name of this logger. More...
 
nostd::unique_ptr< opentelemetry::logs::LogRecord > CreateLogRecord () noexcept override
 
void EmitLogRecord (nostd::unique_ptr< opentelemetry::logs::LogRecord > &&log_record) noexcept override
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationScope () const noexcept
 Returns the associated instrumentation scope. More...
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationLibrary () const noexcept
 
 Logger (opentelemetry::nostd::string_view name, std::shared_ptr< LoggerContext > context, std::unique_ptr< instrumentationscope::InstrumentationScope > instrumentation_scope=instrumentationscope::InstrumentationScope::Create("")) noexcept
 Initialize a new logger. More...
 
const opentelemetry::nostd::string_view GetName () noexcept override
 Returns the name of this logger. More...
 
nostd::unique_ptr< opentelemetry::logs::LogRecord > CreateLogRecord () noexcept override
 
void EmitLogRecord (nostd::unique_ptr< opentelemetry::logs::LogRecord > &&log_record) noexcept override
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationScope () const noexcept
 Returns the associated instrumentation scope. More...
 
const opentelemetry::sdk::instrumentationscope::InstrumentationScope & GetInstrumentationLibrary () const noexcept
 

Constructor & Destructor Documentation

◆ Logger() [1/2]

sdk::logs::Logger::Logger ( opentelemetry::nostd::string_view  name,
std::shared_ptr< LoggerContext >  context,
std::unique_ptr< instrumentationscope::InstrumentationScope >  instrumentation_scope = instrumentationscope::InstrumentationScope::Create("") 
)
explicitnoexcept

Initialize a new logger.

Parameters
nameThe name of this logger instance
contextThe logger provider that owns this logger.

◆ Logger() [2/2]

sdk::logs::Logger::Logger ( opentelemetry::nostd::string_view  name,
std::shared_ptr< LoggerContext >  context,
std::unique_ptr< instrumentationscope::InstrumentationScope >  instrumentation_scope = instrumentationscope::InstrumentationScope::Create("") 
)
explicitnoexcept

Initialize a new logger.

Parameters
nameThe name of this logger instance
contextThe logger provider that owns this logger.

Member Function Documentation

◆ CreateLogRecord() [1/2]

nostd::unique_ptr<opentelemetry::logs::LogRecord> sdk::logs::Logger::CreateLogRecord ( )
overridenoexcept

◆ CreateLogRecord() [2/2]

nostd::unique_ptr<opentelemetry::logs::LogRecord> sdk::logs::Logger::CreateLogRecord ( )
overridenoexcept

◆ EmitLogRecord() [1/2]

void sdk::logs::Logger::EmitLogRecord ( nostd::unique_ptr< opentelemetry::logs::LogRecord > &&  log_record)
overridenoexcept

◆ EmitLogRecord() [2/2]

void sdk::logs::Logger::EmitLogRecord ( nostd::unique_ptr< opentelemetry::logs::LogRecord > &&  log_record)
overridenoexcept

◆ GetInstrumentationLibrary() [1/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::Logger::GetInstrumentationLibrary ( ) const
inlinenoexcept

◆ GetInstrumentationLibrary() [2/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::Logger::GetInstrumentationLibrary ( ) const
inlinenoexcept

◆ GetInstrumentationScope() [1/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::Logger::GetInstrumentationScope ( ) const
noexcept

Returns the associated instrumentation scope.

◆ GetInstrumentationScope() [2/2]

const opentelemetry::sdk::instrumentationscope::InstrumentationScope& sdk::logs::Logger::GetInstrumentationScope ( ) const
noexcept

Returns the associated instrumentation scope.

Referenced by GetInstrumentationLibrary().

◆ GetName() [1/2]

const opentelemetry::nostd::string_view sdk::logs::Logger::GetName ( )
overridenoexcept

Returns the name of this logger.

◆ GetName() [2/2]

const opentelemetry::nostd::string_view sdk::logs::Logger::GetName ( )
overridenoexcept

Returns the name of this logger.


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