PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger­Factory3 Interface / ILogger­Factory3 Methods / ILogger­Factory3.​Get­Logger Method / ILogger­Factory3.​Get­Logger Method (String)

ILoggerFactory3.GetLogger Method (String)

Gets an instance of the ILogger2 interface for a specific sourceName. The name will usually, but not always, be a type name.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
ILogger3 GetLogger(
	string sourceName
)

Parameters

sourceName
Type: System.String
Name identifying the returned logger. The backend creates a logger based on this name.

Return Value

Type: ILogger3
See Also