<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="11.0.0" />

Microsoft.Extensions.Logging.DebugLoggerFactoryExtensions

public static class DebugLoggerFactoryExtensions
Extension methods for the ILoggerFactory class.
public static ILoggerFactory AddDebug(this ILoggerFactory factory, LogLevel minLevel)

Adds a debug logger that is enabled for LogLevel.Information or higher.

public static ILoggerFactory AddDebug(this ILoggerFactory factory, Func<string, LogLevel, bool> filter)

Adds a debug logger that is enabled as defined by the filter function.

public static ILoggerFactory AddDebug(this ILoggerFactory factory)

Adds a debug logger that is enabled for log levels of minLevel or higher.

public static ILoggingBuilder AddDebug(this ILoggingBuilder builder)

Adds a debug logger named 'Debug' to the factory.