Open sandboxFocus

Constructor LoggingTypeSource

LoggingTypeSource(LoggingNamespaceSource, Type)

Creates an instance of LoggingTypeSource.

Declaration
[Obsolete("Use the constructor that uses a full source name instead.")]
protected LoggingTypeSource(LoggingNamespaceSource parent, Type sourceType)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

Type sourceType

The type represented by the new LoggingTypeSource.

LoggingTypeSource(LoggingNamespaceSource, string, Type)

Creates an instance of LoggingTypeSource.

Declaration
protected LoggingTypeSource(LoggingNamespaceSource parent, string shortName, Type sourceType = null)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

string shortName

Name of the log source represented by the new LoggingTypeSource. This is usually the FullName of sourceType.

Type sourceType

Optional. The type that this type source is associated with. This is usually the type that the source is logging.