PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Type­Source Class / Logging­Type­Source Constructor / Logging­Type­Source Constructor (Logging­Namespace­Source, String, Type)

LoggingTypeSource Constructor (LoggingNamespaceSource, String, Type)

Creates an instance of LoggingTypeSource.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.7.0 (6.9.7.0)
Syntax
C#
protected LoggingTypeSource(
	LoggingNamespaceSource parent,
	string shortName,
	Type sourceType = null
)

Parameters

parent
Type: PostSharp.Patterns.Diagnostics.LoggingNamespaceSource
The parent LoggingNamespaceSource.
shortName
Type: System.String
Name of the log source represented by the new LoggingTypeSource. This is usually the FullName of sourceType.
sourceType (Optional)
Type: System.Type
Optional. The type that this type source is associated with. This is usually the type that the source is logging.
See Also