Class: OpenTelemetry::Logs::LoggerProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/opentelemetry/logs/logger_provider.rb

Overview

No-op implementation of a logger provider.

Direct Known Subclasses

Internal::ProxyLoggerProvider

Instance Method Summary collapse

Instance Method Details

#logger(name = nil, version = nil) ⇒ OpenTelemetry::Logs::Logger

Returns an OpenTelemetry::Logs::Logger instance.

Parameters:

  • name (optional String) (defaults to: nil)

    Instrumentation package name

  • version (optional String) (defaults to: nil)

    Instrumentation package version

Returns:



20
21
22
# File 'lib/opentelemetry/logs/logger_provider.rb', line 20

def logger(name = nil, version = nil)
  @logger ||= NOOP_LOGGER
end