语言

FallbackEventDefinition 构造函数

定义

重载

FallbackEventDefinition(EventId, LogLevel, String)

Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs

创建事件定义实例。

public FallbackEventDefinition(Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string messageFormat);
new Microsoft.EntityFrameworkCore.Diagnostics.FallbackEventDefinition : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string -> Microsoft.EntityFrameworkCore.Diagnostics.FallbackEventDefinition
Public Sub New (eventId As EventId, level As LogLevel, messageFormat As String)

参数

eventId
EventId

EventId。

level
LogLevel

LogLevel将记录事件的位置。

messageFormat
String

参数化消息定义。

适用于

FallbackEventDefinition(EventId, LogLevel, String, String)

Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs

创建事件定义实例。

public FallbackEventDefinition(Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, string messageFormat);
new Microsoft.EntityFrameworkCore.Diagnostics.FallbackEventDefinition : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * string -> Microsoft.EntityFrameworkCore.Diagnostics.FallbackEventDefinition
Public Sub New (eventId As EventId, level As LogLevel, eventIdCode As String, messageFormat As String)

参数

eventId
EventId

EventId。

level
LogLevel

LogLevel将记录事件的位置。

eventIdCode
String

一个字符串,表示应传递给 ConfigureWanings 的代码。

messageFormat
String

参数化消息定义。

适用于

FallbackEventDefinition(ILoggingOptions, EventId, LogLevel, String, String)

Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs
Source:
FallbackEventDefinition.cs

创建事件定义实例。

public FallbackEventDefinition(Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions loggingOptions, Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, string messageFormat);
new Microsoft.EntityFrameworkCore.Diagnostics.FallbackEventDefinition : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * string -> Microsoft.EntityFrameworkCore.Diagnostics.FallbackEventDefinition
Public Sub New (loggingOptions As ILoggingOptions, eventId As EventId, level As LogLevel, eventIdCode As String, messageFormat As String)

参数

loggingOptions
ILoggingOptions

日志记录选项。

eventId
EventId

EventId。

level
LogLevel

LogLevel将记录事件的位置。

eventIdCode
String

一个字符串,表示应传递给 ConfigureWarnings(Action<WarningsConfigurationBuilder>)的代码。

messageFormat
String

参数化消息定义。

适用于