IDiagnosticsLogger<TLoggerCategory>.GetLogBehavior Method
Definition
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.
Checks if the given logLevel
is enabled or the given event, and,
if so, whether the event should be logged or thrown.
public Microsoft.EntityFrameworkCore.WarningBehavior GetLogBehavior (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel logLevel);
abstract member GetLogBehavior : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel -> Microsoft.EntityFrameworkCore.WarningBehavior
Public Function GetLogBehavior (eventId As EventId, logLevel As LogLevel) As WarningBehavior
Parameters
- eventId
- EventId
The event ID that will be logged, if enabled.
- logLevel
- LogLevel
The logging level to which the event will be logged.
Returns
One of Log, Throw, or Ignore.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework