ILoggerFactory ILoggerFactory Interface

Represents a type used to configure the logging system and create instances of ILogger from the registered ILoggerProviders.

Syntax

Declaration

public interface ILoggerFactory : IDisposablePublic Interface ILoggerFactory
    Inherits IDisposable

Inherited Members

Dispose()
Dispose()

Methods summary

Adds an ILoggerProvider to the logging system.
Creates a new ILogger instance.

Methods

  • AddProvider(ILoggerProvider)
    AddProvider(ILoggerProvider)
    Adds an ILoggerProvider to the logging system.
    void AddProvider(ILoggerProvider provider)Sub AddProvider(provider As ILoggerProvider)

    Parameters

  • CreateLogger(String)
    CreateLogger(String)
    Creates a new ILogger instance.
    ILogger CreateLogger(string categoryName)Function CreateLogger(categoryName As String) As ILogger

    Parameters

    • categoryName
      System.String
      System.String
      The category name for messages produced by the logger.

    Returns

Details

Assembly

Microsoft.Extensions.Logging.Abstractions.dll