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