PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / ILogger­Factory2 Interface

ILoggerFactory2 Interface

Note: This API is now obsolete.

Creates instances of the ILogger2 interface.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
[ObsoleteAttribute("Use ILoggerFactory3")]
public interface ILoggerFactory2

The ILoggerFactory2 type exposes the following members.

Methods
  NameDescription
Public methodGetLogger Obsolete.
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 LogSource for a given role and Type.
(Defined by LoggerFactoryExtensions.)
See Also