FormattedLogValues Class¶
LogValues to enable formatting options supported by string.Format.
This also enables using {NamedformatItem} in the format string.
- Namespace
Microsoft.Extensions.Logging.Internal- Assemblies
- Microsoft.Extensions.Logging.Abstractions
Syntax¶
public class FormattedLogValues : IReadOnlyList<KeyValuePair<string, object>>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
-
class
Microsoft.Extensions.Logging.Internal.FormattedLogValues
Constructors¶
-
FormattedLogValues(System.String, System.Object[])¶ public FormattedLogValues(string format, params object[] values)
-
Properties¶
-
Microsoft.Extensions.Logging.Internal.FormattedLogValues.Count¶ Return type: System.Int32 public int Count { get; }
-
Microsoft.Extensions.Logging.Internal.FormattedLogValues.Item[System.Int32]¶ Return type: System.Collections.Generic.KeyValuePair<System.String> public KeyValuePair<string, object> this[int index] { get; }
-
Methods¶
-
GetEnumerator()¶ Return type: System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String>> public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
-
GetEnumerator() Return type: System.Collections.IEnumerator IEnumerator IEnumerable.GetEnumerator()
-
ToString()¶ Return type: System.String public override string ToString()
-