<PackageReference Include="OpenTelemetry.Api" Version="1.20.0-rc.1" />

OpenTelemetry.Logs.LoggerProvider

public class LoggerProvider : BaseProvider
LoggerProvider is the entry point of the OpenTelemetry API. It provides access to Logger.
protected LoggerProvider()

Initializes a new instance of the LoggerProvider class.

public Logger GetLogger()

Gets a logger.

public Logger GetLogger(string name)

Gets a logger with the given name.

public Logger GetLogger(string name, string version)

Gets a logger with the given name and version.

public Logger GetLogger(LoggerOptions options)

Gets a logger with the given options.

protected virtual bool TryCreateLogger(LoggerOptions options, out Logger logger)

Try to create a logger with the given options.