PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Profile Class/Logging­Profile Methods/Logging­Profile.​Get­Abstract­Source Method

LoggingProfile.GetAbstractSource Method

Gets the LoggingAbstractSource for a given Type in the current profile.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
public LoggingAbstractSource GetAbstractSource(
	Type type
)

Parameters

type
Type: System.Type
A Type.

Return Value

Type: LoggingAbstractSource
The LoggingAbstractSource for the given type and the Role of the current LoggingProfile.
Remarks

When this method fails with an exception, the exception is reported to the ExceptionHandler, and a LoggingAbstractSource bound to the NullLoggingBackend is returned.

See Also