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

LoggingBackend.GetSource Method (String, String)

Note: This API is now obsolete.

Returns a LoggingNamespaceSource for the given role and, optionally, namespace.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
[ObsoleteAttribute("Use methods from DefaultContextLocalConfiguration.Verbosity")]
public LoggingNamespaceSource GetSource(
	string role,
	string ns = null
)

Parameters

role
Type: System.String
The role. Typically one of the constants of the LoggingRoles type, or a custom role.
ns (Optional)
Type: System.String
The namespace for which the LoggingNamespaceSource is requested, or null if the LoggingNamespaceSource is requested for the root namespace.

Return Value

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