4 writes to _formatter
Microsoft.Extensions.Logging.Abstractions (4)
FormattedLogValues.cs (4)
39
if (!s_formatters.TryGetValue(format, out
_formatter
))
41
_formatter
= new LogValuesFormatter(format);
46
_formatter
= s_formatters.GetOrAdd(format, f =>
55
_formatter
= null;
7 references to _formatter
Microsoft.Extensions.Logging.Abstractions (7)
FormattedLogValues.cs (7)
31
internal LogValuesFormatter? Formatter =>
_formatter
;
67
if (
_formatter
is null || _values is null)
77
return
_formatter
.GetValue(_values, index);
85
if (
_formatter
== null)
90
return
_formatter
.ValueNames.Count + 1;
104
if (
_formatter
== null)
109
return _cachedToString ??=
_formatter
.Format(_values);