Compartilhar via


TaskOrchestrationContext.CreateReplaySafeLogger Method

Definition

Overloads

CreateReplaySafeLogger(String)

Returns an instance of ILogger that is replay-safe, meaning that the logger only writes logs when the orchestrator is not replaying previous history.

CreateReplaySafeLogger(Type)

Returns an instance of ILogger that is replay-safe, meaning that the logger only writes logs when the orchestrator is not replaying previous history.

CreateReplaySafeLogger<T>()

Returns an instance of ILogger that is replay-safe, meaning that the logger only writes logs when the orchestrator is not replaying previous history.

CreateReplaySafeLogger(String)

Returns an instance of ILogger that is replay-safe, meaning that the logger only writes logs when the orchestrator is not replaying previous history.

public Microsoft.Extensions.Logging.ILogger CreateReplaySafeLogger (string categoryName);
member this.CreateReplaySafeLogger : string -> Microsoft.Extensions.Logging.ILogger
Public Function CreateReplaySafeLogger (categoryName As String) As ILogger

Parameters

categoryName
String

The logger's category name.

Returns

An instance of ILogger that is replay-safe.

Applies to

CreateReplaySafeLogger(Type)

Returns an instance of ILogger that is replay-safe, meaning that the logger only writes logs when the orchestrator is not replaying previous history.

public virtual Microsoft.Extensions.Logging.ILogger CreateReplaySafeLogger (Type type);
abstract member CreateReplaySafeLogger : Type -> Microsoft.Extensions.Logging.ILogger
override this.CreateReplaySafeLogger : Type -> Microsoft.Extensions.Logging.ILogger
Public Overridable Function CreateReplaySafeLogger (type As Type) As ILogger

Parameters

type
Type

The type to derive the category name from.

Returns

An instance of ILogger that is replay-safe.

Applies to

CreateReplaySafeLogger<T>()

Returns an instance of ILogger that is replay-safe, meaning that the logger only writes logs when the orchestrator is not replaying previous history.

public virtual Microsoft.Extensions.Logging.ILogger CreateReplaySafeLogger<T> ();
abstract member CreateReplaySafeLogger : unit -> Microsoft.Extensions.Logging.ILogger
override this.CreateReplaySafeLogger : unit -> Microsoft.Extensions.Logging.ILogger
Public Overridable Function CreateReplaySafeLogger(Of T) () As ILogger

Type Parameters

T

The type to derive category name from.

Returns

An instance of ILogger that is replay-safe.

Applies to