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 (Type, String)

LogSource.Get Method (Type, String)

Gets a log source for a specified role and Type.

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(
	Type type,
	string role = null
)

Parameters

type
Type: System.Type
The type.
role (Optional)
Type: System.String
See LoggingRoles.

Return Value

Type: LogSource
See Also