WarningsConfigurationBuilder.Log Method

Definition

Overloads

Log(EventId[])

Causes an event to be logged, regardless of default configuration.

Log(ValueTuple<EventId,LogLevel>[])

Causes an event to be logged at the specified level, regardless of default configuration.

Log(EventId[])

Causes an event to be logged, regardless of default configuration.

public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder Log (params Microsoft.Extensions.Logging.EventId[] eventIds);
abstract member Log : Microsoft.Extensions.Logging.EventId[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
override this.Log : Microsoft.Extensions.Logging.EventId[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
Public Overridable Function Log (ParamArray eventIds As EventId()) As WarningsConfigurationBuilder

Parameters

eventIds
EventId[]

The IDs for events to configure.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

Event ID values can be found in CoreEventId and RelationalEventId. The database provider being used may also define provider-specific event IDs in a similar class.

See Configuration for specific messages for more information and examples.

Applies to

Log(ValueTuple<EventId,LogLevel>[])

Causes an event to be logged at the specified level, regardless of default configuration.

public virtual Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder Log (params (Microsoft.Extensions.Logging.EventId Id, Microsoft.Extensions.Logging.LogLevel Level)[] eventsAndLevels);
abstract member Log : ValueTuple<Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.LogLevel>[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
override this.Log : ValueTuple<Microsoft.Extensions.Logging.EventId, Microsoft.Extensions.Logging.LogLevel>[] -> Microsoft.EntityFrameworkCore.Diagnostics.WarningsConfigurationBuilder
Public Overridable Function Log (ParamArray eventsAndLevels As ValueTuple(Of EventId, LogLevel)()) As WarningsConfigurationBuilder

Parameters

eventsAndLevels
ValueTuple<EventId,LogLevel>[]

The event IDs and levels to configure.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

Event ID values can be found in CoreEventId and RelationalEventId. The database provider being used may also define provider-specific event IDs in a similar class.

See Configuration for specific messages for more information and examples.

Applies to