|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
6 #include "opentelemetry/logs/logger_type_traits.h"
7 #include "opentelemetry/logs/severity.h"
8 #include "opentelemetry/nostd/string_view.h"
9 #include "opentelemetry/nostd/unique_ptr.h"
10 #include "opentelemetry/version.h"
15 class KeyValueIterable;
67 template <class... ArgumentType>
81 #if __cplusplus <= 201402L
84 log_record.get(), std::forward<ArgumentType>(args)),
86 IgnoreTraitResult(dummy);
89 log_record.get(), std::forward<ArgumentType>(args)),
113 template <
class... ArgumentType>
136 template <
class... ArgumentType>
137 void Trace(ArgumentType &&...args) noexcept
141 "Severity is already set.");
160 template <
class... ArgumentType>
161 void Debug(ArgumentType &&...args) noexcept
165 "Severity is already set.");
184 template <
class... ArgumentType>
185 void Info(ArgumentType &&...args) noexcept
189 "Severity is already set.");
208 template <
class... ArgumentType>
209 void Warn(ArgumentType &&...args) noexcept
213 "Severity is already set.");
232 template <
class... ArgumentType>
233 void Error(ArgumentType &&...args) noexcept
237 "Severity is already set.");
256 template <
class... ArgumentType>
257 void Fatal(ArgumentType &&...args) noexcept
261 "Severity is already set.");
289 return static_cast<uint8_t
>(severity) >= OPENTELEMETRY_ATOMIC_READ_8(&minimum_severity_);
380 inline void Info(int64_t event_id,
401 inline void Warn(int64_t event_id,
464 const EventId & )
const noexcept
476 OPENTELEMETRY_ATOMIC_WRITE_8(&minimum_severity_, severity_or_max);
void Debug(nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
std::unique_ptr< _Types... > unique_ptr
virtual ~Logger()=default
EventId class which acts the Id of the event with an optional name.
void Info(const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Warn(ArgumentType &&...args) noexcept
Writes a log with a severity of warn.
void Fatal(nostd::string_view message) noexcept
void Info(nostd::string_view message) noexcept
Provide a simplified port of std::unique_ptr that has ABI stability.
#define OPENTELEMETRY_LIKELY_CONDITION(C)
void Debug(const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
virtual void EmitLogRecord(nostd::unique_ptr< LogRecord > &&log_record) noexcept=0
Emit a Log Record object.
void Fatal(nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Fatal(int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
virtual void Log(Severity severity, nostd::string_view message) noexcept
virtual bool EnabledImplementation(Severity, const EventId &) const noexcept
void Fatal(const EventId &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, const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
Log an event.
void Error(const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Fatal(ArgumentType &&...args) noexcept
Writes a log with a severity of fatal.
const uint8_t kMaxSeverity
#define OPENTELEMETRY_BEGIN_NAMESPACE
void Info(nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
virtual void Log(Severity severity, int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Trace(ArgumentType &&...args) noexcept
Writes a log with a severity of trace.
void Info(ArgumentType &&...args) noexcept
Writes a log with a severity of info.
void Trace(int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Warn(const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Warn(nostd::string_view message) noexcept
virtual bool EnabledImplementation(Severity, int64_t) const noexcept
void Warn(nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
nostd::variant< int64_t, double > ValueType
#define OPENTELEMETRY_END_NAMESPACE
void Trace(nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
Maintains a representation of a log in a format that can be processed by a recorder.
virtual const nostd::string_view GetName() noexcept=0
constexpr absl::OTABSL_OPTION_NAMESPACE_NAME::remove_reference_t< T > && move(T &&t) noexcept
void Debug(int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
Supports internal iteration over a collection of key-value pairs.
void Debug(ArgumentType &&...args) noexcept
Writes a log with a severity of debug.
bool Enabled(Severity severity) const noexcept
void Trace(nostd::string_view message) noexcept
void Warn(int64_t 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 EmitLogRecord(ArgumentType &&...args)
Emit a Log Record object with arguments.
Severity
Severity Levels assigned to log events, based on Log Data Model, with the addition of kInvalid (mappe...
void SetMinimumSeverity(uint8_t severity_or_max) noexcept
void Error(int64_t event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Error(nostd::string_view message) noexcept
void Trace(const EventId &event_id, nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
void Error(ArgumentType &&...args) noexcept
Writes a log with a severity of error.
void Debug(nostd::string_view message) noexcept
virtual nostd::unique_ptr< LogRecord > CreateLogRecord() noexcept=0
Create a Log Record object.
void Error(nostd::string_view format, const common::KeyValueIterable &attributes) noexcept
bool Enabled(Severity severity, int64_t event_id) const noexcept
bool Enabled(Severity severity, const EventId &event_id) const noexcept
static std::string format(const char *fmt,...)
Back port of std::string_view to work with pre-cpp-17 compilers.