Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ILogger Interface
Definition
- Namespace:
- Microsoft.Extensions.Logging
- Assembly:
- Microsoft.Extensions.Logging.Abstractions.dll
- Package:
- Microsoft.Extensions.Logging.Abstractions v11.0.0-preview.5.26302.115
- Source:
- ILogger.cs
- Source:
- ILogger.cs
- Source:
- ILogger.cs
- Source:
- ILogger.cs
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.
Represents a type used to perform logging.
public interface class ILogger
public interface ILogger
type ILogger = interface
Public Interface ILogger
- Derived
Remarks
This interface aggregates most logging patterns to a single method.
Methods
| Name | Description |
|---|---|
| BeginScope<TState>(TState) |
Begins a logical operation scope. |
| IsEnabled(LogLevel) |
Checks if the given |
| Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>) |
Writes a log entry. |
Extension Methods
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
