FileLoggingSession.AddLoggingChannel FileLoggingSession.AddLoggingChannel FileLoggingSession.AddLoggingChannel FileLoggingSession.AddLoggingChannel FileLoggingSession.AddLoggingChannel Method

Definition

Overloads

AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel)

Adds a logging channel to the current logging session.

AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel)

Adds a logging channel to the current logging session. The logging channel only accepts events that have a logging level at or above the specified logging level.

AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel)

Adds a logging channel to the current logging session.

public : void AddLoggingChannel(ILoggingChannel loggingChannel)
void AddLoggingChannel(ILoggingChannel loggingChannel) const;
public void AddLoggingChannel(ILoggingChannel loggingChannel)
Public Sub AddLoggingChannel(loggingChannel As ILoggingChannel)
fileLoggingSession.addLoggingChannel(loggingChannel);

Parameters

loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to add.

Remarks

The logging level is set to LoggingLevel.Verbose. The **LoggingChannel ** will accept all events.

Adding a channel to a session more than once updates the level.

See also

AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel)

Adds a logging channel to the current logging session. The logging channel only accepts events that have a logging level at or above the specified logging level.

public : void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel)
void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel) const;
public void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel)
Public Sub AddLoggingChannel(loggingChannel As ILoggingChannel, maxLevel As LoggingLevel)
fileLoggingSession.addLoggingChannel(loggingChannel, maxLevel);

Parameters

loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to add.

maxLevel
LoggingLevel LoggingLevel LoggingLevel

The minimum logging level that an event must have to be accepted by the session.

Remarks

maxLevel specifies the which events from the channel the session will accept and which are ignored. It does not change the level of the channel itself.

See also