EventDefinition Constructors
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.
Overloads
EventDefinition(EventId, LogLevel, Action<ILogger,Exception>) |
Creates an event definition instance. |
EventDefinition(EventId, LogLevel, String, Action<ILogger,Exception>) |
Creates an event definition instance. |
EventDefinition(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,Exception>>) |
Creates an event definition instance. |
EventDefinition(EventId, LogLevel, Action<ILogger,Exception>)
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
Creates an event definition instance.
public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, Action<Microsoft.Extensions.Logging.ILogger,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * Action<Microsoft.Extensions.Logging.ILogger, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition
Public Sub New (eventId As EventId, level As LogLevel, logAction As Action(Of ILogger, Exception))
Parameters
Applies to
EventDefinition(EventId, LogLevel, String, Action<ILogger,Exception>)
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
Creates an event definition instance.
public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Action<Microsoft.Extensions.Logging.ILogger,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Action<Microsoft.Extensions.Logging.ILogger, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition
Public Sub New (eventId As EventId, level As LogLevel, eventIdCode As String, logAction As Action(Of ILogger, Exception))
Parameters
- eventIdCode
- String
A string representing the code that should be passed to ConfigureWanings.
Applies to
EventDefinition(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,Exception>>)
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
- Source:
- EventDefinition.cs
Creates an event definition instance.
public EventDefinition (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Func<Microsoft.Extensions.Logging.LogLevel,Action<Microsoft.Extensions.Logging.ILogger,Exception>> logActionFunc);
public EventDefinition (Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Func<Microsoft.Extensions.Logging.LogLevel,Action<Microsoft.Extensions.Logging.ILogger,Exception?>> logActionFunc);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Func<Microsoft.Extensions.Logging.LogLevel, Action<Microsoft.Extensions.Logging.ILogger, Exception>> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition
Public Sub New (loggingOptions As ILoggingOptions, eventId As EventId, level As LogLevel, eventIdCode As String, logActionFunc As Func(Of LogLevel, Action(Of ILogger, Exception)))
Parameters
- loggingOptions
- ILoggingOptions
Logging options.
- eventIdCode
- String
A string representing the code that should be passed to ConfigureWarnings(Action<WarningsConfigurationBuilder>).
Function to create a cached delegate for logging the event.
Applies to
Entity Framework