PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logger Class / Logger Methods / Logger.​Get­Logger Method / Logger.​Get­Logger Method (String, Caller­Info)

Logger.GetLogger Method (String, CallerInfo)

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static Logger GetLogger(
	string role,
	ref CallerInfo callerInfo
)

Parameters

role
Type: System.String
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo

Return Value

Type: Logger
See Also