NullLoggerFactory Class

Namespace
Microsoft.Extensions.Logging.Testing
Assemblies
  • Microsoft.Extensions.Logging.Testing

Syntax

public class NullLoggerFactory : ILoggerFactory, IDisposable
class Microsoft.Extensions.Logging.Testing.NullLoggerFactory

Methods

AddProvider(Microsoft.Extensions.Logging.ILoggerProvider)
public void AddProvider(ILoggerProvider provider)
CreateLogger(System.String)
Return type:Microsoft.Extensions.Logging.ILogger
public ILogger CreateLogger(string name)
Dispose()
public void Dispose()

Fields

Instance()
Return type:Microsoft.Extensions.Logging.Testing.NullLoggerFactory
public static readonly NullLoggerFactory Instance