DebugLoggerFactoryExtensions DebugLoggerFactoryExtensions Class

Extension methods for the ILoggerFactory class.

Syntax

Declaration

public static class DebugLoggerFactoryExtensionsPublic Module DebugLoggerFactoryExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • DebugLoggerFactoryExtensions
    DebugLoggerFactoryExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Adds a debug logger that is enabled for LogLevel.Information or higher.
Adds a debug logger that is enabled for LogLevels of minLevel or higher.
Adds a debug logger that is enabled as defined by the filter function.

Methods

  • AddDebug(ILoggerFactory)
    AddDebug(ILoggerFactory)
    Adds a debug logger that is enabled for LogLevel.Information or higher.
    public static ILoggerFactory AddDebug(this ILoggerFactory factory)<ExtensionAttribute>
    Public Shared Function AddDebug(factory As ILoggerFactory) As ILoggerFactory

    Parameters

    Returns

  • AddDebug(ILoggerFactory, LogLevel)
    AddDebug(ILoggerFactory, LogLevel)
    Adds a debug logger that is enabled for LogLevels of minLevel or higher.
    public static ILoggerFactory AddDebug(this ILoggerFactory factory, LogLevel minLevel)<ExtensionAttribute>
    Public Shared Function AddDebug(factory As ILoggerFactory, minLevel As LogLevel) As ILoggerFactory

    Parameters

    Returns

  • AddDebug(ILoggerFactory, Func<String, LogLevel, Boolean>)
    AddDebug(ILoggerFactory, Func(Of String, LogLevel, Boolean))
    Adds a debug logger that is enabled as defined by the filter function.
    public static ILoggerFactory AddDebug(this ILoggerFactory factory, Func<string, LogLevel, bool> filter)<ExtensionAttribute>
    Public Shared Function AddDebug(factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean)) As ILoggerFactory

    Parameters

    • factory
      The extension method argument.
    • filter
      System.Func<T1, T2, TResult><System.String, LogLevel, System.Boolean>
      System.Func<T1, T2, TResult>(Of System.String, LogLevel, System.Boolean)
      The function used to filter events based on the log level.

    Returns

Details

Assembly

Microsoft.Extensions.Logging.Debug.dll