PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​MicrosoftMicrosoft­Logging­Type­SourceMicrosoft­Logging­Type­Source
Open sandboxFocus

MicrosoftLoggingTypeSource Constructor

MicrosoftLoggingTypeSource(LoggingNamespaceSource, Type)

Initializes a new MicrosoftLoggingTypeSource.

Declaration
public MicrosoftLoggingTypeSource(LoggingNamespaceSource parent, Type type)
Parameters
Type Name Description
LoggingNamespaceSource parent

The parent LoggingNamespaceSource.

System.Type type

The source System.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.

System.String sourceName

Name of the log source.

System.Type type

The source System.Type that will emit log records.