FilterLogger Class

Namespace
Microsoft.Extensions.Logging.Filter.Internal
Assemblies
  • Microsoft.Extensions.Logging.Filter

Syntax

public class FilterLogger : ILogger
class Microsoft.Extensions.Logging.Filter.Internal.FilterLogger

Constructors

FilterLogger(Microsoft.Extensions.Logging.ILogger, System.String, Microsoft.Extensions.Logging.IFilterLoggerSettings)
public FilterLogger(ILogger innerLogger, string categoryName, IFilterLoggerSettings settings)

Methods

BeginScope<TState>(TState)
Return type:System.IDisposable
public IDisposable BeginScope<TState>(TState state)
IsEnabled(Microsoft.Extensions.Logging.LogLevel)
Return type:System.Boolean
public bool IsEnabled(LogLevel logLevel)
Log<TState>(Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, TState, System.Exception, System.Func<TState, System.Exception, System.String>)
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)