Bagikan melalui


EventDefinition<TParam1,TParam2,TParam3> Konstruktor

Definisi

Overload

EventDefinition<TParam1,TParam2,TParam3>(EventId, LogLevel, Action<ILogger,TParam1,TParam2,TParam3,Exception>)

Membuat instans definisi peristiwa.

EventDefinition<TParam1,TParam2,TParam3>(EventId, LogLevel, String, Action<ILogger,TParam1,TParam2,TParam3,Exception>)

Membuat instans definisi peristiwa.

EventDefinition<TParam1,TParam2,TParam3>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam1,TParam2, TParam3,Exception>>)

Membuat instans definisi peristiwa.

EventDefinition<TParam1,TParam2,TParam3>(EventId, LogLevel, Action<ILogger,TParam1,TParam2,TParam3,Exception>)

Membuat instans definisi peristiwa.

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))

Parameter

eventId
EventId

EventId.

level
LogLevel

Tempat LogLevel peristiwa akan dicatat.

logAction
Action<ILogger,TParam1,TParam2,TParam3,Exception>

Delegasi yang di-cache untuk mencatat peristiwa.

Berlaku untuk

EventDefinition<TParam1,TParam2,TParam3>(EventId, LogLevel, String, Action<ILogger,TParam1,TParam2,TParam3,Exception>)

Membuat instans definisi peristiwa.

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))

Parameter

eventId
EventId

EventId.

level
LogLevel

Tempat LogLevel peristiwa akan dicatat.

eventIdCode
String

String yang mewakili kode yang harus diteruskan ke ConfigureWanings.

logAction
Action<ILogger,TParam1,TParam2,TParam3,Exception>

Delegasi yang di-cache untuk mencatat peristiwa.

Berlaku untuk

EventDefinition<TParam1,TParam2,TParam3>(ILoggingOptions, EventId, LogLevel, String, Func<LogLevel,Action<ILogger,TParam1,TParam2, TParam3,Exception>>)

Membuat instans definisi peristiwa.

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)))

Parameter

loggingOptions
ILoggingOptions

Opsi pengelogan.

eventId
EventId

EventId.

level
LogLevel

Tempat LogLevel peristiwa akan dicatat.

eventIdCode
String

String yang mewakili kode yang harus diteruskan ke ConfigureWarnings(Action<WarningsConfigurationBuilder>).

logActionFunc
Func<LogLevel,Action<ILogger,TParam1,TParam2,TParam3,Exception>>

Fungsi untuk membuat delegasi cache untuk pengelogan peristiwa.

Berlaku untuk