Share via


FileLoggingSession.AddLoggingChannel Methode

Definition

Überlädt

AddLoggingChannel(ILoggingChannel)

Fügt der aktuellen Protokollierungssitzung einen Protokollierungskanal hinzu.

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Fügt der aktuellen Protokollierungssitzung einen Protokollierungskanal hinzu. Der Protokollierungskanal akzeptiert nur Ereignisse, die eine Protokollierungsebene auf oder über der angegebenen Protokollierungsebene aufweisen.

AddLoggingChannel(ILoggingChannel)

Fügt der aktuellen Protokollierungssitzung einen Protokollierungskanal hinzu.

public:
 virtual void AddLoggingChannel(ILoggingChannel ^ loggingChannel) = AddLoggingChannel;
/// [Windows.Foundation.Metadata.Overload("AddLoggingChannel")]
void AddLoggingChannel(ILoggingChannel const& loggingChannel);
[Windows.Foundation.Metadata.Overload("AddLoggingChannel")]
public void AddLoggingChannel(ILoggingChannel loggingChannel);
function addLoggingChannel(loggingChannel)
Public Sub AddLoggingChannel (loggingChannel As ILoggingChannel)

Parameter

loggingChannel
ILoggingChannel

Der hinzuzufügende Protokollierungskanal.

Implementiert

Attribute

Hinweise

Die Protokollierungsebene ist auf LoggingLevel.Verbose festgelegt. **LoggingChannel ** akzeptiert alle Ereignisse.

Wenn Sie einer Sitzung mehr als einmal einen Kanal hinzufügen, wird die Ebene aktualisiert.

Weitere Informationen

Gilt für:

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Fügt der aktuellen Protokollierungssitzung einen Protokollierungskanal hinzu. Der Protokollierungskanal akzeptiert nur Ereignisse, die eine Protokollierungsebene auf oder über der angegebenen Protokollierungsebene aufweisen.

public:
 virtual void AddLoggingChannel(ILoggingChannel ^ loggingChannel, LoggingLevel maxLevel) = AddLoggingChannel;
/// [Windows.Foundation.Metadata.Overload("AddLoggingChannelWithLevel")]
void AddLoggingChannel(ILoggingChannel const& loggingChannel, LoggingLevel const& maxLevel);
[Windows.Foundation.Metadata.Overload("AddLoggingChannelWithLevel")]
public void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel);
function addLoggingChannel(loggingChannel, maxLevel)
Public Sub AddLoggingChannel (loggingChannel As ILoggingChannel, maxLevel As LoggingLevel)

Parameter

loggingChannel
ILoggingChannel

Der hinzuzufügende Protokollierungskanal.

maxLevel
LoggingLevel

Die Mindestprotokollierungsebene , die ein Ereignis von der Sitzung akzeptiert werden muss.

Implementiert

Attribute

Hinweise

maxLevel gibt an, welche Ereignisse vom Kanal die Sitzung akzeptiert und welche ignoriert werden. Die Ebene des Kanals selbst wird nicht geändert.

Weitere Informationen

Gilt für: