LoggingTypeSource(LoggingNamespaceSource, Type)
Initializes a new instance of the LoggingTypeSource class.
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)
Initializes a new instance of the LoggingTypeSource class.
Declaration
protected LoggingTypeSource(LoggingNamespaceSource parent, string shortName, Type sourceType = null)Parameters
| Type | Name | Description |
|---|---|---|
| LoggingNamespaceSource | parent | The parent LoggingNamespaceSource. |
| string | shortName | The name of the log source represented by the new LoggingTypeSource. This is usually the FullName of |
| Type | sourceType | Optional. The type that this type source is associated with. This is usually the type that the source is logging. |