Open sandboxFocus

Constructor MicrosoftLoggingTypeSource

MicrosoftLoggingTypeSource(LoggingNamespaceSource, Type)

Initializes a new MicrosoftLoggingTypeSource.

Declaration
[Obsolete("Use the other constructor.")]
public MicrosoftLoggingTypeSource(LoggingNamespaceSource parent, Type type)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

Type type

The source Type that will emit log records.

MicrosoftLoggingTypeSource(LoggingNamespaceSource, string, Type)

Initializes a new MicrosoftLoggingTypeSource.

Declaration
public MicrosoftLoggingTypeSource(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 source Type that will emit log records.