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

MicrosoftLoggingTypeSource Constructor (LoggingNamespaceSource, String, Type)

Initializes a new MicrosoftLoggingTypeSource.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Microsoft
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Microsoft (in PostSharp.Patterns.Diagnostics.Backends.Microsoft.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public MicrosoftLoggingTypeSource(
	LoggingNamespaceSource parent,
	string sourceName,
	Type type = null
)

Parameters

parent
Type: PostSharp.Patterns.Diagnostics.LoggingNamespaceSource
The parent LoggingNamespaceSource.
sourceName
Type: System.String
Name of the log source.
type (Optional)
Type: System.Type
The source Type that will emit log records.
See Also