ConsoleLoggerExtensions.AddConsole Methode

Definition

Überlädt

AddConsole(ILoggerFactory)
Veraltet.

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel.Information oder höher aktiviert ist.

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>, Boolean)
Veraltet.

Fügt eine Konsolenprotokollierung hinzu, die entsprechend der Definition in der Filterfunktion aktiviert ist.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Fügt der Factory eine Konsolenprotokollierung mit dem Namen „Konsole“ hinzu.

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>)
Veraltet.

Fügt eine Konsolenprotokollierung hinzu, die entsprechend der Definition in der Filterfunktion aktiviert ist.

AddConsole(ILoggerFactory, Boolean)
Veraltet.

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel.Information oder höher aktiviert ist.

AddConsole(ILoggerFactory, LogLevel, Boolean)
Veraltet.

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel-Elemente vom Typ „minLevel“ oder höher aktiviert ist.

AddConsole(ILoggerFactory, IConsoleLoggerSettings)
Veraltet.
AddConsole(ILoggerFactory, IConfiguration)
Veraltet.
AddConsole(ILoggingBuilder)

Fügt der Factory eine Konsolenprotokollierung mit dem Namen „Konsole“ hinzu.

AddConsole(ILoggerFactory, LogLevel)
Veraltet.

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel-Elemente vom Typ „minLevel“ oder höher aktiviert ist.

AddConsole(ILoggerFactory)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel.Information oder höher aktiviert ist.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>, Boolean)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Fügt eine Konsolenprotokollierung hinzu, die entsprechend der Definition in der Filterfunktion aktiviert ist.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter, bool includeScopes);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

filter
Func<String,LogLevel,Boolean>

Der Kategoriefilter, der auf Protokolle angewendet werden soll.

includeScopes
Boolean

Ein Wert, der angibt, ob Protokollbereichsinformationen in der Ausgabe angezeigt werden sollen.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Fügt der Factory eine Konsolenprotokollierung mit dem Namen „Konsole“ hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::Console::ConsoleLoggerOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> configure);
static member AddConsole : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddConsole (builder As ILoggingBuilder, configure As Action(Of ConsoleLoggerOptions)) As ILoggingBuilder

Parameter

builder
ILoggingBuilder

Der zu verwendende ILoggingBuilder.

configure
Action<ConsoleLoggerOptions>

Ein Delegat zum Konfigurieren der ConsoleLogger-Schnittstelle.

Gibt zurück

ILoggingBuilder

Gilt für:

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Fügt eine Konsolenprotokollierung hinzu, die entsprechend der Definition in der Filterfunktion aktiviert ist.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean)) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

filter
Func<String,LogLevel,Boolean>

Der Kategoriefilter, der auf Protokolle angewendet werden soll.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddConsole(ILoggerFactory, Boolean)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel.Information oder höher aktiviert ist.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, bool includeScopes);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, includeScopes As Boolean) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

includeScopes
Boolean

Ein Wert, der angibt, ob Protokollbereichsinformationen in der Ausgabe angezeigt werden sollen.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddConsole(ILoggerFactory, LogLevel, Boolean)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel-Elemente vom Typ „minLevel“ oder höher aktiviert ist.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::LogLevel minLevel, bool includeScopes);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel * bool -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, minLevel As LogLevel, includeScopes As Boolean) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

minLevel
LogLevel

Das Minimum, das LogLevel protokolliert werden soll.

includeScopes
Boolean

Ein Wert, der angibt, ob Protokollbereichsinformationen in der Ausgabe angezeigt werden sollen.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddConsole(ILoggerFactory, IConsoleLoggerSettings)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::Console::IConsoleLoggerSettings ^ settings);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, settings As IConsoleLoggerSettings) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

settings
IConsoleLoggerSettings

Die Einstellungen, die auf erstellte ConsoleLogger angewendet werden sollen.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddConsole(ILoggerFactory, IConfiguration)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Configuration.IConfiguration configuration);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, configuration As IConfiguration) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

configuration
IConfiguration

Die IConfiguration-Schnittstelle, die für IConsoleLoggerSettings verwendet werden soll.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddConsole(ILoggingBuilder)

Fügt der Factory eine Konsolenprotokollierung mit dem Namen „Konsole“ hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddConsole : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddConsole (builder As ILoggingBuilder) As ILoggingBuilder

Parameter

builder
ILoggingBuilder

Der zu verwendende ILoggingBuilder.

Gibt zurück

ILoggingBuilder

Gilt für:

AddConsole(ILoggerFactory, LogLevel)

Achtung

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Fügt eine Konsolenprotokollierung hinzu, die für LogLevel-Elemente vom Typ „minLevel“ oder höher aktiviert ist.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::LogLevel minLevel);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, minLevel As LogLevel) As ILoggerFactory

Parameter

factory
ILoggerFactory

Der zu verwendende ILoggerFactory.

minLevel
LogLevel

Das Minimum, das LogLevel protokolliert werden soll.

Gibt zurück

ILoggerFactory
Attribute

Gilt für: