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
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.
Entity Framework