PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­ProfileGet­Abstract­Source
Open sandboxFocus

LoggingProfile.GetAbstractSource Method

GetAbstractSource(Type)

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

Declaration
public LoggingAbstractSource GetAbstractSource(Type type)
Parameters
Type Name Description
System.Type type

A System.Type.

Returns
Type Description
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.