DurableContextExtensions.CreateReplaySafeLogger Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an instance of ILogger that is replay safe, ensuring the logger logs only when the orchestrator is not replaying that line of code.
public static Microsoft.Extensions.Logging.ILogger CreateReplaySafeLogger (this Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurableOrchestrationContext context, Microsoft.Extensions.Logging.ILogger logger);
static member CreateReplaySafeLogger : Microsoft.Azure.WebJobs.Extensions.DurableTask.IDurableOrchestrationContext * Microsoft.Extensions.Logging.ILogger -> Microsoft.Extensions.Logging.ILogger
<Extension()>
Public Function CreateReplaySafeLogger (context As IDurableOrchestrationContext, logger As ILogger) As ILogger
Parameters
- context
- IDurableOrchestrationContext
The context object.
- logger
- ILogger
An instance of ILogger.
Returns
An instance of a replay safe ILogger.
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure SDK for .NET