PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/ILogger­Factory2 Interface

ILoggerFactory2 Interface

Creates instances of the ILogger2 interface.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.8.0 (6.5.8.0)
Syntax
C#
public interface ILoggerFactory2

The ILoggerFactory2 type exposes the following members.

Methods
  NameDescription
Public methodGetLogger
Gets an instance of the ILogger2 for a specific Type.
Extension Methods
  NameDescription
Public Extension MethodGetLogSource()Overloaded.
Gets a Logger for a given role and for the calling type.
(Defined by LoggerFactoryExtensions.)
Public Extension MethodGetLogSource(Type)Overloaded.
Gets a Logger for a given role and Type.
(Defined by LoggerFactoryExtensions.)
See Also