Class EventLogger

Inheritance Relationships

Base Type

Class Documentation

class EventLogger : public opentelemetry::logs::EventLogger

Public Functions

explicit EventLogger(nostd::shared_ptr<opentelemetry::logs::Logger> delegate_logger, nostd::string_view event_domain) noexcept

Initialize a new Eventlogger.

Parameters:
  • delegate_logger – The delegate logger instance

  • event_domain – Event domain

const opentelemetry::nostd::string_view GetName() noexcept override

Returns the name of this logger.

nostd::shared_ptr<opentelemetry::logs::Logger> GetDelegateLogger() noexcept override
void EmitEvent(nostd::string_view event_name, nostd::unique_ptr<opentelemetry::logs::LogRecord> &&log_record) noexcept override