<PackageReference Include="OpenTelemetry.Api" Version="1.14.0" />

OpenTelemetry.Logs.Logger

abstract class Logger
Logger is the class responsible for creating log records.
public string Name { get; }

Gets the name identifying the instrumentation library.

public string Version { get; }

Gets the version of the instrumentation library.

protected Logger(string name)

Initializes a new instance of the Logger class.

public void EmitLog(ref LogRecordData data)

Emit a log.

public abstract void EmitLog(LogRecordData& modreq(System.Runtime.InteropServices.InAttribute) data, LogRecordAttributeList& modreq(System.Runtime.InteropServices.InAttribute) attributes)