Freigeben über


EventDefinition<TParam1,TParam2,TParam3,TParam4,TParam5,TParam6>.Log Methode

Definition

Überlädt

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, WarningBehavior, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, Exception)
Veraltet.

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, WarningBehavior, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, Exception)

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)

Quelle:
EventDefinition%60%60%60%60%60%60.cs
Quelle:
EventDefinition%60%60%60%60%60%60.cs
Quelle:
EventDefinition%60%60%60%60%60%60.cs
Quelle:
EventDefinition%60%60%60%60%60%60.cs
Quelle:
EventDefinition%60%60%60%60%60%60.cs

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

public virtual void Log<TLoggerCategory> (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<TLoggerCategory> logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, TParam4 arg4, TParam5 arg5, TParam6 arg6) where TLoggerCategory : Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<TLoggerCategory>, new();
abstract member Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
override this.Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
Public Overridable Sub Log(Of TLoggerCategory As {LoggerCategory(Of TLoggerCategory)New}) (logger As IDiagnosticsLogger(Of TLoggerCategory), arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4, arg5 As TParam5, arg6 As TParam6)

Typparameter

TLoggerCategory

Die DbLoggerCategory.

Parameter

logger
IDiagnosticsLogger<TLoggerCategory>

Die Protokollierung, in der das Ereignis protokolliert werden soll.

arg1
TParam1

Das erste Nachrichtenargument.

arg2
TParam2

Das zweite Nachrichtenargument.

arg3
TParam3

Das dritte Nachrichtenargument.

arg4
TParam4

Das vierte Nachrichtenargument.

arg5
TParam5

Das fünfte Nachrichtenargument.

arg6
TParam6

Das sechste Meldungsargument.

Gilt für:

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, WarningBehavior, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6)

Quelle:
EventDefinition%60%60%60%60%60%60.cs
Quelle:
EventDefinition%60%60%60%60%60%60.cs

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

public virtual void Log<TLoggerCategory> (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<TLoggerCategory> logger, Microsoft.EntityFrameworkCore.WarningBehavior warningBehavior, TParam1 arg1, TParam2 arg2, TParam3 arg3, TParam4 arg4, TParam5 arg5, TParam6 arg6) where TLoggerCategory : Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<TLoggerCategory>, new();
abstract member Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * Microsoft.EntityFrameworkCore.WarningBehavior * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
override this.Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * Microsoft.EntityFrameworkCore.WarningBehavior * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
Public Overridable Sub Log(Of TLoggerCategory As {LoggerCategory(Of TLoggerCategory)New}) (logger As IDiagnosticsLogger(Of TLoggerCategory), warningBehavior As WarningBehavior, arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4, arg5 As TParam5, arg6 As TParam6)

Typparameter

TLoggerCategory

Die DbLoggerCategory.

Parameter

logger
IDiagnosticsLogger<TLoggerCategory>

Die Protokollierung, in der das Ereignis protokolliert werden soll.

warningBehavior
WarningBehavior

Gibt an, ob das Ereignis protokolliert, als Ausnahme ausgelöst oder ignoriert werden soll.

arg1
TParam1

Das erste Nachrichtenargument.

arg2
TParam2

Das zweite Nachrichtenargument.

arg3
TParam3

Das dritte Nachrichtenargument.

arg4
TParam4

Das vierte Nachrichtenargument.

arg5
TParam5

Das fünfte Nachrichtenargument.

arg6
TParam6

Das sechste Meldungsargument.

Gilt für:

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, Exception)

Quelle:
EventDefinition%60%60%60%60%60%60.cs
Quelle:
EventDefinition%60%60%60%60%60%60.cs

Achtung

Use the other overload

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

public virtual void Log<TLoggerCategory> (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<TLoggerCategory> logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, TParam4 arg4, TParam5 arg5, TParam6 arg6, Exception exception = default) where TLoggerCategory : Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<TLoggerCategory>, new();
[System.Obsolete("Use the other overload")]
public virtual void Log<TLoggerCategory> (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<TLoggerCategory> logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, TParam4 arg4, TParam5 arg5, TParam6 arg6, Exception exception = default) where TLoggerCategory : Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<TLoggerCategory>, new();
abstract member Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 * Exception -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
override this.Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 * Exception -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
[<System.Obsolete("Use the other overload")>]
abstract member Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 * Exception -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
override this.Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 * Exception -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
Public Overridable Sub Log(Of TLoggerCategory As {LoggerCategory(Of TLoggerCategory)New}) (logger As IDiagnosticsLogger(Of TLoggerCategory), arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4, arg5 As TParam5, arg6 As TParam6, Optional exception As Exception = Nothing)

Typparameter

TLoggerCategory

Die DbLoggerCategory.

Parameter

logger
IDiagnosticsLogger<TLoggerCategory>

Die Protokollierung, in der das Ereignis protokolliert werden soll.

arg1
TParam1

Das erste Nachrichtenargument.

arg2
TParam2

Das zweite Nachrichtenargument.

arg3
TParam3

Das dritte Nachrichtenargument.

arg4
TParam4

Das vierte Nachrichtenargument.

arg5
TParam5

Das fünfte Nachrichtenargument.

arg6
TParam6

Das sechste Meldungsargument.

exception
Exception

Optionale Ausnahme, die dem Ereignis zugeordnet ist.

Attribute

Gilt für:

Log<TLoggerCategory>(IDiagnosticsLogger<TLoggerCategory>, WarningBehavior, TParam1, TParam2, TParam3, TParam4, TParam5, TParam6, Exception)

Quelle:
EventDefinition%60%60%60%60%60%60.cs
Quelle:
EventDefinition%60%60%60%60%60%60.cs

Protokolliert das Ereignis oder löst aus, wenn das Ereignis so konfiguriert wurde, dass es als Fehler behandelt wird.

public virtual void Log<TLoggerCategory> (Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<TLoggerCategory> logger, Microsoft.EntityFrameworkCore.WarningBehavior warningBehavior, TParam1 arg1, TParam2 arg2, TParam3 arg3, TParam4 arg4, TParam5 arg5, TParam6 arg6, Exception exception = default) where TLoggerCategory : Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<TLoggerCategory>, new();
abstract member Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * Microsoft.EntityFrameworkCore.WarningBehavior * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 * Exception -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
override this.Log : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<'LoggerCategory (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))> * Microsoft.EntityFrameworkCore.WarningBehavior * 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * 'TParam6 * Exception -> unit (requires 'LoggerCategory :> Microsoft.EntityFrameworkCore.Diagnostics.LoggerCategory<'LoggerCategory> and 'LoggerCategory : (new : unit -> 'LoggerCategory))
Public Overridable Sub Log(Of TLoggerCategory As {LoggerCategory(Of TLoggerCategory)New}) (logger As IDiagnosticsLogger(Of TLoggerCategory), warningBehavior As WarningBehavior, arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4, arg5 As TParam5, arg6 As TParam6, Optional exception As Exception = Nothing)

Typparameter

TLoggerCategory

Die DbLoggerCategory.

Parameter

logger
IDiagnosticsLogger<TLoggerCategory>

Die Protokollierung, in der das Ereignis protokolliert werden soll.

warningBehavior
WarningBehavior

Gibt an, ob das Ereignis protokolliert, als Ausnahme ausgelöst oder ignoriert werden soll.

arg1
TParam1

Das erste Nachrichtenargument.

arg2
TParam2

Das zweite Nachrichtenargument.

arg3
TParam3

Das dritte Nachrichtenargument.

arg4
TParam4

Das vierte Nachrichtenargument.

arg5
TParam5

Das fünfte Nachrichtenargument.

arg6
TParam6

Das sechste Meldungsargument.

exception
Exception

Optionale Ausnahme, die dem Ereignis zugeordnet ist.

Gilt für: