ILogger<TCategoryName> Interface

A generic interface for logging where the category name is derived from the specified <em>TCategoryName</em> type name. Generally used to enable activation of a named Microsoft.Extensions.Logging.ILogger from dependency injection.

Namespace
Microsoft.Extensions.Logging
Assemblies
  • Microsoft.Extensions.Logging.Abstractions

Syntax

public interface ILogger<out TCategoryName> : ILogger
interface Microsoft.Extensions.Logging.ILogger<TCategoryName>