Class NoopLogger
Defined in File noop.h
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public opentelemetry::logs::Logger
(Class Logger)
Class Documentation
-
class NoopLogger : public opentelemetry::logs::Logger
No-op implementation of Logger. This class should not be used directly. It should only be instantiated using a LoggerProvider’s GetLogger() call.
Public Functions
-
inline virtual const nostd::string_view GetName() noexcept override
-
inline virtual nostd::unique_ptr<LogRecord> CreateLogRecord() noexcept override
Create a Log Record object
- Returns:
nostd::unique_ptr<LogRecord>
-
inline virtual void EmitLogRecord(nostd::unique_ptr<LogRecord>&&) noexcept override
Emit a Log Record object
- Parameters:
log_record –
-
void EmitLogRecord(nostd::unique_ptr<LogRecord> &&log_record) noexcept = 0
Emit a Log Record object
- Parameters:
log_record –
-
template<class ...ArgumentType>
inline void EmitLogRecord(nostd::unique_ptr<LogRecord> &&log_record, ArgumentType&&... args) Emit a Log Record object with arguments
- Parameters:
log_record – Log record
- Template Parameters:
args – Arguments 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)
-
template<class ...ArgumentType>
inline void EmitLogRecord(ArgumentType&&... args) Emit a Log Record object with arguments
- Template Parameters:
args – Arguments 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)
-
inline virtual const nostd::string_view GetName() noexcept override