4 types derived from ConsoleFormatter
Microsoft.Arcade.Common (1)
CompactConsoleLoggerFormatter.cs (1)
30
public class CompactConsoleLoggerFormatter :
ConsoleFormatter
Microsoft.Extensions.Logging.Console (3)
JsonConsoleFormatter.cs (1)
18
internal sealed class JsonConsoleFormatter :
ConsoleFormatter
, IDisposable
SimpleConsoleFormatter.cs (1)
13
internal sealed class SimpleConsoleFormatter :
ConsoleFormatter
, IDisposable
SystemdConsoleFormatter.cs (1)
13
internal sealed class SystemdConsoleFormatter :
ConsoleFormatter
, IDisposable
18 references to ConsoleFormatter
Microsoft.Extensions.Logging.Console (18)
ConsoleFormatter.cs (1)
16
/// Initializes a new instance of <see cref="
ConsoleFormatter
"/>.
ConsoleLogger.cs (2)
25
ConsoleFormatter
formatter,
38
internal
ConsoleFormatter
Formatter { get; set; }
ConsoleLoggerExtensions.cs (6)
134
where TFormatter :
ConsoleFormatter
148
where TFormatter :
ConsoleFormatter
159
where TFormatter :
ConsoleFormatter
164
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<
ConsoleFormatter
, TFormatter>());
180
where TFormatter :
ConsoleFormatter
193
where TFormatter :
ConsoleFormatter
ConsoleLoggerProvider.cs (9)
23
private ConcurrentDictionary<string,
ConsoleFormatter
> _formatters;
34
: this(options, Array.Empty<
ConsoleFormatter
>()) { }
41
public ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions> options, IEnumerable<
ConsoleFormatter
>? formatters)
100
private void SetFormatters(IEnumerable<
ConsoleFormatter
>? formatters = null)
102
var cd = new ConcurrentDictionary<string,
ConsoleFormatter
>(StringComparer.OrdinalIgnoreCase);
107
foreach (
ConsoleFormatter
formatter in formatters)
127
if (options.FormatterName == null || !_formatters.TryGetValue(options.FormatterName, out
ConsoleFormatter
? logFormatter))
155
if (_options.CurrentValue.FormatterName == null || !_formatters.TryGetValue(_options.CurrentValue.FormatterName, out
ConsoleFormatter
? logFormatter))
177
private static void UpdateFormatterOptions(
ConsoleFormatter
formatter, ConsoleLoggerOptions deprecatedFromOptions)