PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger­Factory­Provider Interface / ILogger­Factory­Provider Methods / ILogger­Factory­Provider.​Get­Logger­Factory Method

ILoggerFactoryProvider.GetLoggerFactory Method

Gets an instance of the ILoggerFactory2 interface.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
ILoggerFactory2 GetLoggerFactory(
	string role
)

Parameters

role
Type: System.String
The role for which the logger is requested.

Return Value

Type: ILoggerFactory2
See Also