ILogger<TCategoryName> Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
generic <typename TCategoryName>
public interface class ILogger : Microsoft::Extensions::Logging::ILogger
public interface ILogger<out TCategoryName> : Microsoft.Extensions.Logging.ILogger
type ILogger<'CategoryName> = interface
interface ILogger
Public Interface ILogger(Of Out TCategoryName)
Implements ILogger
- TCategoryName
The type whose name is used for the logger category name.
This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.- Derived
- Implements
Begin |
Begins a logical operation scope. (Inherited from ILogger) |
Is |
Checks if the given |
Log<TState>(Log |
Writes a log entry. (Inherited from ILogger) |
Produit | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :