NVIDIA DeepStream SDK API Reference

9.2 Release
logs::EventLogger Class Referenceabstract

Detailed Description

Handles event log record creation.

Definition at line 21 of file includes/opentelemetry/logs/event_logger.h.

Inheritance diagram for logs::EventLogger:

Public Member Functions

virtual ~EventLogger ()=default
 
virtual const nostd::string_view GetName () noexcept=0
 
virtual nostd::shared_ptr< Logger > GetDelegateLogger () noexcept=0
 
virtual void EmitEvent (nostd::string_view event_name, nostd::unique_ptr< LogRecord > &&log_record) noexcept=0
 Emit a event Log Record object. More...
 
template<class... ArgumentType>
void EmitEvent (nostd::string_view event_name, ArgumentType &&...args)
 Emit a event Log Record object with arguments. More...
 
virtual ~EventLogger ()=default
 
virtual const nostd::string_view GetName () noexcept=0
 
virtual nostd::shared_ptr< Logger > GetDelegateLogger () noexcept=0
 
virtual void EmitEvent (nostd::string_view event_name, nostd::unique_ptr< LogRecord > &&log_record) noexcept=0
 Emit a event Log Record object. More...
 
template<class... ArgumentType>
void EmitEvent (nostd::string_view event_name, ArgumentType &&...args)
 Emit a event Log Record object with arguments. More...
 

Constructor & Destructor Documentation

◆ ~EventLogger() [1/2]

virtual logs::EventLogger::~EventLogger ( )
virtualdefault

◆ ~EventLogger() [2/2]

virtual logs::EventLogger::~EventLogger ( )
virtualdefault

Member Function Documentation

◆ EmitEvent() [1/4]

template<class... ArgumentType>
void logs::EventLogger::EmitEvent ( nostd::string_view  event_name,
ArgumentType &&...  args 
)
inline

Emit a event Log Record object with arguments.

Parameters
event_nameEvent name
argsArguments which can be used to set data of log record by type. Severity -> severity, severity_text string_view -> body AttributeValue -> body SpanContext -> span_id,tace_id and trace_flags SpanId -> span_id TraceId -> tace_id TraceFlags -> trace_flags SystemTimestamp -> timestamp system_clock::time_point -> timestamp KeyValueIterable -> attributes Key value iterable container -> attributes span<pair<string_view, AttributeValue>> -> attributes(return type of MakeAttributes)

Definition at line 60 of file includes/opentelemetry/logs/event_logger.h.

References nostd::unique_ptr< T >::get(), and absl::move().

◆ EmitEvent() [2/4]

template<class... ArgumentType>
void logs::EventLogger::EmitEvent ( nostd::string_view  event_name,
ArgumentType &&...  args 
)
inline

Emit a event Log Record object with arguments.

Parameters
event_nameEvent name
argsArguments which can be used to set data of log record by type. Severity -> severity, severity_text string_view -> body AttributeValue -> body SpanContext -> span_id,tace_id and trace_flags SpanId -> span_id TraceId -> tace_id TraceFlags -> trace_flags SystemTimestamp -> timestamp system_clock::time_point -> timestamp KeyValueIterable -> attributes Key value iterable container -> attributes span<pair<string_view, AttributeValue>> -> attributes(return type of MakeAttributes)

Definition at line 60 of file 9.2/includes/opentelemetry/logs/event_logger.h.

References nostd::unique_ptr< T >::get(), and absl::move().

◆ EmitEvent() [3/4]

virtual void logs::EventLogger::EmitEvent ( nostd::string_view  event_name,
nostd::unique_ptr< LogRecord > &&  log_record 
)
pure virtualnoexcept

Emit a event Log Record object.

Parameters
event_nameEvent name
log_recordLog record

Implemented in logs::NoopEventLogger, and logs::NoopEventLogger.

◆ EmitEvent() [4/4]

virtual void logs::EventLogger::EmitEvent ( nostd::string_view  event_name,
nostd::unique_ptr< LogRecord > &&  log_record 
)
pure virtualnoexcept

Emit a event Log Record object.

Parameters
event_nameEvent name
log_recordLog record

Implemented in logs::NoopEventLogger, and logs::NoopEventLogger.

◆ GetDelegateLogger() [1/2]

virtual nostd::shared_ptr<Logger> logs::EventLogger::GetDelegateLogger ( )
pure virtualnoexcept

◆ GetDelegateLogger() [2/2]

virtual nostd::shared_ptr<Logger> logs::EventLogger::GetDelegateLogger ( )
pure virtualnoexcept

◆ GetName() [1/2]

virtual const nostd::string_view logs::EventLogger::GetName ( )
pure virtualnoexcept

◆ GetName() [2/2]

virtual const nostd::string_view logs::EventLogger::GetName ( )
pure virtualnoexcept

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