ILogger<TCategoryName> ILogger<TCategoryName> ILogger<TCategoryName> Interface

Definition

A generic interface for logging where the category name is derived from the specified TCategoryName type name. Generally used to enable activation of a named ILogger from dependency injection.

public interface ILogger<out TCategoryName> : Microsoft.Extensions.Logging.ILogger
type ILogger<'CategoryName> = interface
    interface ILogger
Public Interface ILogger(Of Out TCategoryName)
Implements ILogger

Type Parameters

TCategoryName

The type who's name is used for the logger category name.

Derived
Implements

Methods

BeginScope(TState) BeginScope(TState) BeginScope(TState)

Begins a logical operation scope.

(Inherited from ILogger)

IsEnabled(LogLevel) IsEnabled(LogLevel) IsEnabled(LogLevel)

Checks if the given logLevel is enabled.

(Inherited from ILogger)

Log(LogLevel, EventId, TState, Exception, Func) Log(LogLevel, EventId, TState, Exception, Func) Log(LogLevel, EventId, TState, Exception, Func)

Writes a log entry.

(Inherited from ILogger)

Applies to