ConsoleLoggerExtensions クラス

定義

ILoggingBuilderクラスとILoggerProviderConfiguration<T> クラスの拡張メソッドを提供します。

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
継承
ConsoleLoggerExtensions
属性

メソッド

名前 説明
AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

'Console' という名前のコンソール ロガーをファクトリに追加します。

AddConsole(ILoggingBuilder)

'Console' という名前のコンソール ロガーをファクトリに追加します。

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

オプション 'TOptions' で構成するカスタム コンソール ロガー フォーマッタ 'TFormatter' を追加します。

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder)

オプション 'TOptions' で構成するカスタム コンソール ロガー フォーマッタ 'TFormatter' を追加します。

AddJsonConsole(ILoggingBuilder, Action<JsonConsoleFormatterOptions>)

'json' という名前のコンソール ログ フォーマッタをファクトリに追加して構成します。

AddJsonConsole(ILoggingBuilder)

既定のプロパティを使用して、"json" という名前のコンソール ログ フォーマッタをファクトリに追加します。

AddSimpleConsole(ILoggingBuilder, Action<SimpleConsoleFormatterOptions>)

"simple" という名前のコンソール ログ フォーマッタをファクトリに追加して構成します。

AddSimpleConsole(ILoggingBuilder)

既定のプロパティを使用して、"simple" という名前の既定のコンソール ログ フォーマッタをファクトリに追加します。

AddSystemdConsole(ILoggingBuilder, Action<ConsoleFormatterOptions>)

'systemd' という名前のコンソール ログ フォーマッタをファクトリに追加して構成します。

AddSystemdConsole(ILoggingBuilder)

既定のプロパティを使用して、'systemd' という名前のコンソール ログ フォーマッタをファクトリに追加します。

適用対象