Microsoft.Extensions.Logging.FormattedLogValues
struct FormattedLogValues : IReadOnlyList<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyCollection<KeyValuePair<string, object>>
LogValues to enable formatting options supported by Format.
This also enables using {NamedFormatItem} in the format string.
namespace Microsoft.Extensions.Logging
{
internal struct FormattedLogValues : IReadOnlyList<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyCollection<KeyValuePair<string, object>>
{
[Nullable(new byte[] {
0,
1,
2
})]
public KeyValuePair<string, object> this[int index] {
[return: Nullable(new byte[] {
0,
1,
2
})]
get;
}
public int Count { get; }
public FormattedLogValues(string format, params object[] values);
public IEnumerator<KeyValuePair<string, object>> GetEnumerator();
}
}