Deila með


ConsoleLoggerExtensions Class

Definition

Provides extension methods for the ILoggingBuilder and ILoggerProviderConfiguration<T> classes.

public ref class ConsoleLoggerExtensions abstract sealed
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static class ConsoleLoggerExtensions
public static class ConsoleLoggerExtensions
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type ConsoleLoggerExtensions = class
type ConsoleLoggerExtensions = class
Public Module ConsoleLoggerExtensions
Inheritance
ConsoleLoggerExtensions
Attributes

Methods

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Adds a console logger named 'Console' to the factory.

AddConsole(ILoggingBuilder)

Adds a console logger named 'Console' to the factory.

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder, Action<TOptions>)

Adds a custom console logger formatter 'TFormatter' to be configured with options 'TOptions'.

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder)

Adds a custom console logger formatter 'TFormatter' to be configured with options 'TOptions'.

AddJsonConsole(ILoggingBuilder, Action<JsonConsoleFormatterOptions>)

Add and configure a console log formatter named 'json' to the factory.

AddJsonConsole(ILoggingBuilder)

Add a console log formatter named 'json' to the factory with default properties.

AddSimpleConsole(ILoggingBuilder, Action<SimpleConsoleFormatterOptions>)

Add and configure a console log formatter named 'simple' to the factory.

AddSimpleConsole(ILoggingBuilder)

Add the default console log formatter named 'simple' to the factory with default properties.

AddSystemdConsole(ILoggingBuilder, Action<ConsoleFormatterOptions>)

Add and configure a console log formatter named 'systemd' to the factory.

AddSystemdConsole(ILoggingBuilder)

Add a console log formatter named 'systemd' to the factory with default properties.

Applies to