Open sandboxFocus

Constructor ConsoleLoggingTypeSource

ConsoleLoggingTypeSource(LoggingNamespaceSource, string, Type)

Initializes a new ConsoleLoggingTypeSource.

Declaration
public ConsoleLoggingTypeSource(LoggingNamespaceSource parent, string sourceName, Type type = null)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

string sourceName

Name of the log source.

Type type

The Type being logged, if any.

ConsoleLoggingTypeSource(LoggingNamespaceSource, Type)

Initializes a new ConsoleLoggingTypeSource.

Declaration
[Obsolete("Use the other constructor, passing type.FullName as the sourceName.")]
public ConsoleLoggingTypeSource(LoggingNamespaceSource parent, Type type)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

Type type

The Type being logged.

ConsoleLoggingTypeSource(LoggingNamespaceSource, string)

Initializes a new ConsoleLoggingTypeSource.

Declaration
public ConsoleLoggingTypeSource(LoggingNamespaceSource parent, string sourceName)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

string sourceName

A sourceName.