17 references to ConsoleFormatterNames
Microsoft.Extensions.Hosting.Systemd (1)
SystemdHostBuilderExtensions.cs (1)
83options.FormatterName = ConsoleFormatterNames.Systemd;
Microsoft.Extensions.Logging.Console (16)
ConsoleLoggerExtensions.cs (6)
66builder.AddFormatterWithName(ConsoleFormatterNames.Simple); 75return builder.AddConsoleWithFormatter<SimpleConsoleFormatterOptions>(ConsoleFormatterNames.Simple, configure); 83builder.AddFormatterWithName(ConsoleFormatterNames.Json); 92return builder.AddConsoleWithFormatter<JsonConsoleFormatterOptions>(ConsoleFormatterNames.Json, configure); 102return builder.AddConsoleWithFormatter<ConsoleFormatterOptions>(ConsoleFormatterNames.Systemd, configure); 110builder.AddFormatterWithName(ConsoleFormatterNames.Systemd);
ConsoleLoggerProvider.cs (7)
116cd.TryAdd(ConsoleFormatterNames.Simple, new SimpleConsoleFormatter(new FormatterOptionsMonitor<SimpleConsoleFormatterOptions>(new SimpleConsoleFormatterOptions()))); 117cd.TryAdd(ConsoleFormatterNames.Systemd, new SystemdConsoleFormatter(new FormatterOptionsMonitor<ConsoleFormatterOptions>(new ConsoleFormatterOptions()))); 118cd.TryAdd(ConsoleFormatterNames.Json, new JsonConsoleFormatter(new FormatterOptionsMonitor<JsonConsoleFormatterOptions>(new JsonConsoleFormatterOptions()))); 132ConsoleLoggerFormat.Systemd => _formatters[ConsoleFormatterNames.Systemd], 133_ => _formatters[ConsoleFormatterNames.Simple], 160ConsoleLoggerFormat.Systemd => _formatters[ConsoleFormatterNames.Systemd], 161_ => _formatters[ConsoleFormatterNames.Simple],
JsonConsoleFormatter.cs (1)
23: base(ConsoleFormatterNames.Json)
SimpleConsoleFormatter.cs (1)
28: base(ConsoleFormatterNames.Simple)
SystemdConsoleFormatter.cs (1)
18: base(ConsoleFormatterNames.Systemd)