PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Log­Source Class / Log­Source Methods / Log­Source.​Get Method / Log­Source.​Get Method (String, String)

LogSource.Get Method (String, String)

Gets a log source for a specified role and source name.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static LogSource Get(
	string sourceName,
	string role = null
)

Parameters

sourceName
Type: System.String
The source name. A dotted name.
role (Optional)
Type: System.String
A role name. See LoggingRoles.

Return Value

Type: LogSource
See Also