PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Backend Class/Logging­Backend Methods/Logging­Backend.​Get­Source Method/Logging­Backend.​Get­Source Method (String, Type)

LoggingBackend.GetSource Method (String, Type)

Returns a LoggingTypeSource for the given role and type.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public LoggingTypeSource GetSource(
	string role,
	Type type
)

Parameters

role
Type: System.String
The role. Typically one of the constants of the LoggingRoles type, or a custom role.
type
Type: System.Type
The type.

Return Value

Type: LoggingTypeSource
The LoggingTypeSource for role and type. If no LoggingTypeSource exists for this role and type, this method shall create a new LoggingTypeSource.
See Also