Udostępnij za pośrednictwem


EventDefinition<TParam1,TParam2,TParam3,TParam4,TParam5> Konstruktory

Definicja

Przeciążenia

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

Tworzy wystąpienie definicji zdarzeń.

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

Tworzy wystąpienie definicji zdarzeń.

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

Tworzy wystąpienie definicji zdarzeń.

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

Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs

Tworzy wystąpienie definicji zdarzeń.

public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, Action<Microsoft.Extensions.Logging.ILogger,TParam1,TParam2,TParam3,TParam4,TParam5,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5> : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * Action<Microsoft.Extensions.Logging.ILogger, 'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5>
Public Sub New (eventId As EventId, level As LogLevel, logAction As Action(Of ILogger, TParam1, TParam2, TParam3, TParam4, TParam5, Exception))

Parametry

eventId
EventId

Element EventId.

level
LogLevel

Zdarzenie LogLevel , w którym zostanie zarejestrowane.

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

Buforowany delegat do rejestrowania zdarzenia.

Dotyczy

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

Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs

Tworzy wystąpienie definicji zdarzeń.

public EventDefinition (Microsoft.Extensions.Logging.EventId eventId, Microsoft.Extensions.Logging.LogLevel level, string eventIdCode, Action<Microsoft.Extensions.Logging.ILogger,TParam1,TParam2,TParam3,TParam4,TParam5,Exception> logAction);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5> : Microsoft.Extensions.Logging.EventId * Microsoft.Extensions.Logging.LogLevel * string * Action<Microsoft.Extensions.Logging.ILogger, 'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5, Exception> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5>
Public Sub New (eventId As EventId, level As LogLevel, eventIdCode As String, logAction As Action(Of ILogger, TParam1, TParam2, TParam3, TParam4, TParam5, Exception))

Parametry

eventId
EventId

Element EventId.

level
LogLevel

Zdarzenie LogLevel , w którym zostanie zarejestrowane.

eventIdCode
String

Ciąg reprezentujący kod, który powinien zostać przekazany do polecenia ConfigureWanings.

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

Buforowany delegat do rejestrowania zdarzenia.

Dotyczy

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

Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs
Źródło:
EventDefinition%60%60%60%60%60.cs

Tworzy wystąpienie definicji zdarzeń.

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,TParam4,TParam5,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,TParam4,TParam5,Exception?>> logActionFunc);
new Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5> : 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, 'TParam4, 'TParam5, Exception>> -> Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition<'TParam1, 'TParam2, 'TParam3, 'TParam4, 'TParam5>
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, TParam4, TParam5, Exception)))

Parametry

loggingOptions
ILoggingOptions

Opcje rejestrowania.

eventId
EventId

Element EventId.

level
LogLevel

Zdarzenie LogLevel , w którym zostanie zarejestrowane.

eventIdCode
String

Ciąg reprezentujący kod, który powinien zostać przekazany do ConfigureWarnings(Action<WarningsConfigurationBuilder>).

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

Funkcja umożliwiająca utworzenie buforowanego delegata na potrzeby rejestrowania zdarzenia.

Dotyczy