[backend/logging] Fix typo
This commit is contained in:
parent
2c2f350d21
commit
db76a722db
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ public static class ConsoleLoggerExtensions
|
||||||
{
|
{
|
||||||
public static ILoggingBuilder AddCustomConsoleFormatter(this ILoggingBuilder builder)
|
public static ILoggingBuilder AddCustomConsoleFormatter(this ILoggingBuilder builder)
|
||||||
{
|
{
|
||||||
if (Environment.GetEnvironmentVariable("INVOCATION_ID") is null)
|
if (Environment.GetEnvironmentVariable("INVOCATION_ID") is not null)
|
||||||
{
|
{
|
||||||
builder.AddConsole(options => options.FormatterName = "systemd-custom")
|
builder.AddConsole(options => options.FormatterName = "systemd-custom")
|
||||||
.AddConsoleFormatter<CustomSystemdConsoleFormatter, ConsoleFormatterOptions>();
|
.AddConsoleFormatter<CustomSystemdConsoleFormatter, ConsoleFormatterOptions>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue