EventDefinition<TParam1,TParam2,TParam3> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
EventDefinition<TParam1,TParam2,TParam3>(EventId, LogLevel, Action<ILogger,TParam1,TParam2,TParam3,Exception>)
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
创建事件定义实例。
public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, Action<Microsoft.Extensions.Logging.ILogger,TParam1,TParam2,TParam3,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3> : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * Action<Microsoft.Extensions.Logging.ILogger, 'TParam1, 'TParam2, 'TParam3, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3>
Public Sub New (eventId As EventId, level As LogLevel, logAction As Action(Of ILogger, TParam1, TParam2, TParam3, Exception))
参数
适用于
EventDefinition<TParam1,TParam2,TParam3>(EventId, LogLevel, String, Action<ILogger,TParam1,TParam2,TParam3,Exception>)
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
创建事件定义实例。
public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Action<Microsoft.Extensions.Logging.ILogger,TParam1,TParam2,TParam3,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3> : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Action<Microsoft.Extensions.Logging.ILogger, 'TParam1, 'TParam2, 'TParam3, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3>
Public Sub New (eventId As EventId, level As LogLevel, eventIdCode As String, logAction As Action(Of ILogger, TParam1, TParam2, TParam3, Exception))
参数
- eventIdCode
- String
表示应传递给 ConfigureWanings 的代码的字符串。
适用于
EventDefinition<TParam1,TParam2,TParam3>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam1,TParam2, TParam3,Exception>>)
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
- Source:
- EventDefinition%60%60%60.cs
创建事件定义实例。
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,TParam1,TParam2,TParam3,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,TParam1,TParam2,TParam3,Exception?>> logActionFunc);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3> : Microsoft.EntityFrameworkCore.Diagnostics.ILoggingOptions * Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Func<Microsoft.Extensions.Logging.LogLevel, Action<Microsoft.Extensions.Logging.ILogger, 'TParam1, 'TParam2, 'TParam3, Exception>> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3>
Public Sub New (loggingOptions As ILoggingOptions, eventId As EventId, level As LogLevel, eventIdCode As String, logActionFunc As Func(Of LogLevel, Action(Of ILogger, TParam1, TParam2, TParam3, Exception)))
参数
- loggingOptions
- ILoggingOptions
日志记录选项。
- eventIdCode
- String
表示应传递给 的代码的 ConfigureWarnings(Action<WarningsConfigurationBuilder>)字符串。