<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="11.0.0-preview.4.26230.115" />

Microsoft.Extensions.Logging.Internal.LogValuesFormatter

public class LogValuesFormatter
Formatter to convert the named format items like {NamedformatItem} to Format format.
public string OriginalFormat { get; }

Gets the original format string.

public List<string> ValueNames { get; }

Gets the list of named format parameter names.

public LogValuesFormatter(string format)

Initializes a new instance of the LogValuesFormatter class.

public string Format(object[] values)

Formats the given values using the format string.

public KeyValuePair<string, object> GetValue(object[] values, int index)

Gets the key/value pair for the format item at the specified index.

public IEnumerable<KeyValuePair<string, object>> GetValues(object[] values)

Gets an enumerable of key/value pairs for all format items.