/// <summary> /// Add and configure a console log formatter named 'systemd' to the factory. /// </summary> /// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> /// <param name="configure">A delegate to configure the <see cref="ConsoleLogger"/> options for the built-in systemd log formatter.</param> public static ILoggingBuilder AddSystemdConsole(this ILoggingBuilder builder, Action <ConsoleFormatterOptions> configure) { return(builder.AddConsoleWithFormatter <ConsoleFormatterOptions>(ConsoleFormatterNames.Systemd, configure)); }
/// <summary> /// Add and configure a console log formatter named 'json' to the factory. /// </summary> /// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> /// <param name="configure">A delegate to configure the <see cref="ConsoleLogger"/> options for the built-in json log formatter.</param> public static ILoggingBuilder AddJsonConsole(this ILoggingBuilder builder, Action <JsonConsoleFormatterOptions> configure) { return(builder.AddConsoleWithFormatter <JsonConsoleFormatterOptions>(ConsoleFormatterNames.Json, configure)); }