NVIDIA DeepStream SDK API Reference

9.2 Release
logs::Logger Class Referenceabstract

Detailed Description

Handles log record creation.

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

Inheritance diagram for logs::Logger:

Public Member Functions

virtual ~Logger ()=default
 
virtual const nostd::string_view GetName () noexcept=0
 
virtual nostd::unique_ptr< LogRecord > CreateLogRecord () noexcept=0
 Create a Log Record object. More...
 
virtual void EmitLogRecord (nostd::unique_ptr< LogRecord > &&log_record) noexcept=0
 Emit a Log Record object. More...
 
template<class... ArgumentType>
void EmitLogRecord (nostd::unique_ptr< LogRecord > &&log_record, ArgumentType &&...args)
 Emit a Log Record object with arguments. More...
 
template<class... ArgumentType>
void EmitLogRecord (ArgumentType &&...args)
 Emit a Log Record object with arguments. More...
 
template<class... ArgumentType>
void Trace (ArgumentType &&...args) noexcept
 Writes a log with a severity of trace. More...
 
template<class... ArgumentType>
void Debug (ArgumentType &&...args) noexcept
 Writes a log with a severity of debug. More...
 
template<class... ArgumentType>
void Info (ArgumentType &&...args) noexcept
 Writes a log with a severity of info. More...
 
template<class... ArgumentType>
void Warn (ArgumentType &&...args) noexcept
 Writes a log with a severity of warn. More...
 
template<class... ArgumentType>
void Error (ArgumentType &&...args) noexcept
 Writes a log with a severity of error. More...
 
template<class... ArgumentType>
void Fatal (ArgumentType &&...args) noexcept
 Writes a log with a severity of fatal. More...
 
bool Enabled (Severity severity, const EventId &event_id) const noexcept
 
bool Enabled (Severity severity, int64_t event_id) const noexcept
 
bool Enabled (Severity severity) const noexcept
 
virtual void Log (Severity severity, const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 Log an event. More...
 
virtual void Log (Severity severity, int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
virtual void Log (Severity severity, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
virtual void Log (Severity severity, nostd::string_view message) noexcept
 
void Trace (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Trace (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Trace (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Trace (nostd::string_view message) noexcept
 
void Debug (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Debug (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Debug (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Debug (nostd::string_view message) noexcept
 
void Info (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Info (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Info (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Info (nostd::string_view message) noexcept
 
void Warn (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Warn (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Warn (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Warn (nostd::string_view message) noexcept
 
void Error (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Error (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Error (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Error (nostd::string_view message) noexcept
 
void Fatal (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Fatal (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Fatal (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Fatal (nostd::string_view message) noexcept
 
virtual ~Logger ()=default
 
virtual const nostd::string_view GetName () noexcept=0
 
virtual nostd::unique_ptr< LogRecord > CreateLogRecord () noexcept=0
 Create a Log Record object. More...
 
virtual void EmitLogRecord (nostd::unique_ptr< LogRecord > &&log_record) noexcept=0
 Emit a Log Record object. More...
 
template<class... ArgumentType>
void EmitLogRecord (nostd::unique_ptr< LogRecord > &&log_record, ArgumentType &&...args)
 Emit a Log Record object with arguments. More...
 
template<class... ArgumentType>
void EmitLogRecord (ArgumentType &&...args)
 Emit a Log Record object with arguments. More...
 
template<class... ArgumentType>
void Trace (ArgumentType &&...args) noexcept
 Writes a log with a severity of trace. More...
 
template<class... ArgumentType>
void Debug (ArgumentType &&...args) noexcept
 Writes a log with a severity of debug. More...
 
template<class... ArgumentType>
void Info (ArgumentType &&...args) noexcept
 Writes a log with a severity of info. More...
 
template<class... ArgumentType>
void Warn (ArgumentType &&...args) noexcept
 Writes a log with a severity of warn. More...
 
template<class... ArgumentType>
void Error (ArgumentType &&...args) noexcept
 Writes a log with a severity of error. More...
 
template<class... ArgumentType>
void Fatal (ArgumentType &&...args) noexcept
 Writes a log with a severity of fatal. More...
 
bool Enabled (Severity severity, const EventId &event_id) const noexcept
 
bool Enabled (Severity severity, int64_t event_id) const noexcept
 
bool Enabled (Severity severity) const noexcept
 
virtual void Log (Severity severity, const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 Log an event. More...
 
virtual void Log (Severity severity, int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
virtual void Log (Severity severity, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
virtual void Log (Severity severity, nostd::string_view message) noexcept
 
void Trace (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Trace (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Trace (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Trace (nostd::string_view message) noexcept
 
void Debug (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Debug (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Debug (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Debug (nostd::string_view message) noexcept
 
void Info (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Info (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Info (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Info (nostd::string_view message) noexcept
 
void Warn (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Warn (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Warn (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Warn (nostd::string_view message) noexcept
 
void Error (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Error (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Error (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Error (nostd::string_view message) noexcept
 
void Fatal (const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Fatal (int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Fatal (nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
 
void Fatal (nostd::string_view message) noexcept
 

Protected Member Functions

virtual bool EnabledImplementation (Severity, const EventId &) const noexcept
 
virtual bool EnabledImplementation (Severity, int64_t) const noexcept
 
void SetMinimumSeverity (uint8_t severity_or_max) noexcept
 
virtual bool EnabledImplementation (Severity, const EventId &) const noexcept
 
virtual bool EnabledImplementation (Severity, int64_t) const noexcept
 
void SetMinimumSeverity (uint8_t severity_or_max) noexcept
 

Constructor & Destructor Documentation

◆ ~Logger() [1/2]

virtual logs::Logger::~Logger ( )
virtualdefault

◆ ~Logger() [2/2]

virtual logs::Logger::~Logger ( )
virtualdefault

Member Function Documentation

◆ CreateLogRecord() [1/2]

virtual nostd::unique_ptr<LogRecord> logs::Logger::CreateLogRecord ( )
pure virtualnoexcept

Create a Log Record object.

Returns
nostd::unique_ptr<LogRecord>

Implemented in logs::NoopLogger, and logs::NoopLogger.

Referenced by EmitLogRecord().

◆ CreateLogRecord() [2/2]

virtual nostd::unique_ptr<LogRecord> logs::Logger::CreateLogRecord ( )
pure virtualnoexcept

Create a Log Record object.

Returns
nostd::unique_ptr<LogRecord>

Implemented in logs::NoopLogger, and logs::NoopLogger.

◆ Debug() [1/10]

template<class... ArgumentType>
void logs::Logger::Debug ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of debug.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 161 of file includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kDebug.

◆ Debug() [2/10]

template<class... ArgumentType>
void logs::Logger::Debug ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of debug.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 161 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kDebug.

◆ Debug() [3/10]

void logs::Logger::Debug ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Debug() [4/10]

void logs::Logger::Debug ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Debug() [5/10]

void logs::Logger::Debug ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Debug() [6/10]

void logs::Logger::Debug ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Debug() [7/10]

void logs::Logger::Debug ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Debug() [8/10]

void logs::Logger::Debug ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Debug() [9/10]

void logs::Logger::Debug ( nostd::string_view  message)
inlinenoexcept

Definition at line 371 of file 9.2/includes/opentelemetry/logs/logger.h.

References logs::kDebug, and Log().

◆ Debug() [10/10]

void logs::Logger::Debug ( nostd::string_view  message)
inlinenoexcept

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

References logs::kDebug, and Log().

◆ EmitLogRecord() [1/6]

template<class... ArgumentType>
void logs::Logger::EmitLogRecord ( ArgumentType &&...  args)
inline

Emit a Log Record object with arguments.

Parameters
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,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 114 of file includes/opentelemetry/logs/logger.h.

References CreateLogRecord(), EmitLogRecord(), and absl::move().

◆ EmitLogRecord() [2/6]

template<class... ArgumentType>
void logs::Logger::EmitLogRecord ( ArgumentType &&...  args)
inline

Emit a Log Record object with arguments.

Parameters
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,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 114 of file 9.2/includes/opentelemetry/logs/logger.h.

References CreateLogRecord(), EmitLogRecord(), and absl::move().

◆ EmitLogRecord() [3/6]

virtual void logs::Logger::EmitLogRecord ( nostd::unique_ptr< LogRecord > &&  log_record)
pure virtualnoexcept

Emit a Log Record object.

Parameters
log_recordLog record

Implemented in logs::NoopLogger, and logs::NoopLogger.

◆ EmitLogRecord() [4/6]

virtual void logs::Logger::EmitLogRecord ( nostd::unique_ptr< LogRecord > &&  log_record)
pure virtualnoexcept

Emit a Log Record object.

Parameters
log_recordLog record

Implemented in logs::NoopLogger, and logs::NoopLogger.

Referenced by Debug(), EmitLogRecord(), Error(), Fatal(), Info(), Log(), Trace(), and Warn().

◆ EmitLogRecord() [5/6]

template<class... ArgumentType>
void logs::Logger::EmitLogRecord ( nostd::unique_ptr< LogRecord > &&  log_record,
ArgumentType &&...  args 
)
inline

Emit a Log Record object with arguments.

Parameters
log_recordLog record
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,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 68 of file includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and absl::move().

◆ EmitLogRecord() [6/6]

template<class... ArgumentType>
void logs::Logger::EmitLogRecord ( nostd::unique_ptr< LogRecord > &&  log_record,
ArgumentType &&...  args 
)
inline

Emit a Log Record object with arguments.

Parameters
log_recordLog record
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,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 68 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and absl::move().

◆ Enabled() [1/6]

bool logs::Logger::Enabled ( Severity  severity) const
inlinenoexcept

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

◆ Enabled() [2/6]

bool logs::Logger::Enabled ( Severity  severity) const
inlinenoexcept

Definition at line 287 of file 9.2/includes/opentelemetry/logs/logger.h.

◆ Enabled() [3/6]

bool logs::Logger::Enabled ( Severity  severity,
const EventId &  event_id 
) const
inlinenoexcept

◆ Enabled() [4/6]

bool logs::Logger::Enabled ( Severity  severity,
const EventId &  event_id 
) const
inlinenoexcept

◆ Enabled() [5/6]

bool logs::Logger::Enabled ( Severity  severity,
int64_t  event_id 
) const
inlinenoexcept

◆ Enabled() [6/6]

bool logs::Logger::Enabled ( Severity  severity,
int64_t  event_id 
) const
inlinenoexcept

◆ EnabledImplementation() [1/4]

virtual bool logs::Logger::EnabledImplementation ( Severity  ,
const EventId &   
) const
inlineprotectedvirtualnoexcept

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

Referenced by Enabled().

◆ EnabledImplementation() [2/4]

virtual bool logs::Logger::EnabledImplementation ( Severity  ,
const EventId &   
) const
inlineprotectedvirtualnoexcept

Definition at line 463 of file 9.2/includes/opentelemetry/logs/logger.h.

◆ EnabledImplementation() [3/4]

virtual bool logs::Logger::EnabledImplementation ( Severity  ,
int64_t   
) const
inlineprotectedvirtualnoexcept

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

◆ EnabledImplementation() [4/4]

virtual bool logs::Logger::EnabledImplementation ( Severity  ,
int64_t   
) const
inlineprotectedvirtualnoexcept

Definition at line 469 of file 9.2/includes/opentelemetry/logs/logger.h.

◆ Error() [1/10]

template<class... ArgumentType>
void logs::Logger::Error ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of error.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 233 of file includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kError.

◆ Error() [2/10]

template<class... ArgumentType>
void logs::Logger::Error ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of error.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 233 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kError.

◆ Error() [3/10]

void logs::Logger::Error ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Error() [4/10]

void logs::Logger::Error ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Error() [5/10]

void logs::Logger::Error ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Error() [6/10]

void logs::Logger::Error ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Error() [7/10]

void logs::Logger::Error ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Error() [8/10]

void logs::Logger::Error ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Error() [9/10]

void logs::Logger::Error ( nostd::string_view  message)
inlinenoexcept

Definition at line 434 of file 9.2/includes/opentelemetry/logs/logger.h.

References logs::kError, and Log().

◆ Error() [10/10]

void logs::Logger::Error ( nostd::string_view  message)
inlinenoexcept

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

References logs::kError, and Log().

◆ Fatal() [1/10]

template<class... ArgumentType>
void logs::Logger::Fatal ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of fatal.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 257 of file includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kFatal.

◆ Fatal() [2/10]

template<class... ArgumentType>
void logs::Logger::Fatal ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of fatal.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 257 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kFatal.

◆ Fatal() [3/10]

void logs::Logger::Fatal ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Fatal() [4/10]

void logs::Logger::Fatal ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Fatal() [5/10]

void logs::Logger::Fatal ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Fatal() [6/10]

void logs::Logger::Fatal ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Fatal() [7/10]

void logs::Logger::Fatal ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Fatal() [8/10]

void logs::Logger::Fatal ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Fatal() [9/10]

void logs::Logger::Fatal ( nostd::string_view  message)
inlinenoexcept

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

References logs::kFatal, and Log().

◆ Fatal() [10/10]

void logs::Logger::Fatal ( nostd::string_view  message)
inlinenoexcept

Definition at line 455 of file 9.2/includes/opentelemetry/logs/logger.h.

References logs::kFatal, and Log().

◆ GetName() [1/2]

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

Implemented in logs::NoopLogger, and logs::NoopLogger.

◆ GetName() [2/2]

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

Implemented in logs::NoopLogger, and logs::NoopLogger.

◆ Info() [1/10]

template<class... ArgumentType>
void logs::Logger::Info ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of info.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 185 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kInfo.

◆ Info() [2/10]

template<class... ArgumentType>
void logs::Logger::Info ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of info.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 185 of file includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kInfo.

◆ Info() [3/10]

void logs::Logger::Info ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Info() [4/10]

void logs::Logger::Info ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Info() [5/10]

void logs::Logger::Info ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Info() [6/10]

void logs::Logger::Info ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Info() [7/10]

void logs::Logger::Info ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Info() [8/10]

void logs::Logger::Info ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Info() [9/10]

void logs::Logger::Info ( nostd::string_view  message)
inlinenoexcept

Definition at line 392 of file 9.2/includes/opentelemetry/logs/logger.h.

References logs::kInfo, and Log().

◆ Info() [10/10]

void logs::Logger::Info ( nostd::string_view  message)
inlinenoexcept

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

References logs::kInfo, and Log().

◆ Log() [1/8]

virtual void logs::Logger::Log ( Severity  severity,
const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinevirtualnoexcept

Log an event.

@severity severity of the log @event_id event identifier of the log @format an utf-8 string following https://messagetemplates.org/ @attributes key value pairs of the log

Definition at line 300 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and ds3d::v2xinfer::format().

◆ Log() [2/8]

virtual void logs::Logger::Log ( Severity  severity,
const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinevirtualnoexcept

Log an event.

@severity severity of the log @event_id event identifier of the log @format an utf-8 string following https://messagetemplates.org/ @attributes key value pairs of the log

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

References EmitLogRecord(), and ds3d::v2xinfer::format().

Referenced by Debug(), Error(), Fatal(), Info(), Trace(), and Warn().

◆ Log() [3/8]

virtual void logs::Logger::Log ( Severity  severity,
int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinevirtualnoexcept

◆ Log() [4/8]

virtual void logs::Logger::Log ( Severity  severity,
int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinevirtualnoexcept

◆ Log() [5/8]

virtual void logs::Logger::Log ( Severity  severity,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinevirtualnoexcept

◆ Log() [6/8]

virtual void logs::Logger::Log ( Severity  severity,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinevirtualnoexcept

◆ Log() [7/8]

virtual void logs::Logger::Log ( Severity  severity,
nostd::string_view  message 
)
inlinevirtualnoexcept

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

References EmitLogRecord().

◆ Log() [8/8]

virtual void logs::Logger::Log ( Severity  severity,
nostd::string_view  message 
)
inlinevirtualnoexcept

Definition at line 323 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord().

◆ SetMinimumSeverity() [1/2]

void logs::Logger::SetMinimumSeverity ( uint8_t  severity_or_max)
inlineprotectednoexcept

Definition at line 474 of file 9.2/includes/opentelemetry/logs/logger.h.

◆ SetMinimumSeverity() [2/2]

void logs::Logger::SetMinimumSeverity ( uint8_t  severity_or_max)
inlineprotectednoexcept

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

◆ Trace() [1/10]

template<class... ArgumentType>
void logs::Logger::Trace ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of trace.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 137 of file includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kTrace.

◆ Trace() [2/10]

template<class... ArgumentType>
void logs::Logger::Trace ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of trace.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 137 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kTrace.

◆ Trace() [3/10]

void logs::Logger::Trace ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Trace() [4/10]

void logs::Logger::Trace ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Trace() [5/10]

void logs::Logger::Trace ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Trace() [6/10]

void logs::Logger::Trace ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Trace() [7/10]

void logs::Logger::Trace ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Trace() [8/10]

void logs::Logger::Trace ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Trace() [9/10]

void logs::Logger::Trace ( nostd::string_view  message)
inlinenoexcept

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

References logs::kTrace, and Log().

◆ Trace() [10/10]

void logs::Logger::Trace ( nostd::string_view  message)
inlinenoexcept

Definition at line 350 of file 9.2/includes/opentelemetry/logs/logger.h.

References logs::kTrace, and Log().

◆ Warn() [1/10]

template<class... ArgumentType>
void logs::Logger::Warn ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of warn.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 209 of file includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kWarn.

◆ Warn() [2/10]

template<class... ArgumentType>
void logs::Logger::Warn ( ArgumentType &&...  args)
inlinenoexcept

Writes a log with a severity of warn.

Parameters
argsArguments which can be used to set data of log record by type. string_view -> body AttributeValue -> body SpanContext -> span_id,trace_id and trace_flags SpanId -> span_id TraceId -> trace_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 209 of file 9.2/includes/opentelemetry/logs/logger.h.

References EmitLogRecord(), and logs::kWarn.

◆ Warn() [3/10]

void logs::Logger::Warn ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Warn() [4/10]

void logs::Logger::Warn ( const EventId &  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Warn() [5/10]

void logs::Logger::Warn ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Warn() [6/10]

void logs::Logger::Warn ( int64_t  event_id,
nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Warn() [7/10]

void logs::Logger::Warn ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Warn() [8/10]

void logs::Logger::Warn ( nostd::string_view  format,
const common::KeyValueIterable &  attributes 
)
inlinenoexcept

◆ Warn() [9/10]

void logs::Logger::Warn ( nostd::string_view  message)
inlinenoexcept

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

References logs::kWarn, and Log().

◆ Warn() [10/10]

void logs::Logger::Warn ( nostd::string_view  message)
inlinenoexcept

Definition at line 413 of file 9.2/includes/opentelemetry/logs/logger.h.

References logs::kWarn, and Log().


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