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