Share via


FallbackEventDefinition.GenerateMessage(Action<ILogger>) Method

Definition

Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases.

public virtual string GenerateMessage (Action<Microsoft.Extensions.Logging.ILogger> logAction);
abstract member GenerateMessage : Action<Microsoft.Extensions.Logging.ILogger> -> string
override this.GenerateMessage : Action<Microsoft.Extensions.Logging.ILogger> -> string
Public Overridable Function GenerateMessage (logAction As Action(Of ILogger)) As String

Parameters

logAction
Action<ILogger>

A delegate that will log the message to an ILogger.

Returns

The message string.

Applies to