ReplLoggingMiddleware
Adds ambient REPL execution metadata to the active ILogger scope.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Logging - Source: src/Repl.Logging/ReplLoggingMiddleware.cs
Signature
Section titled “Signature”public static class ReplLoggingMiddlewareInheritance
Section titled “Inheritance”Methods
Section titled “Methods”InvokeAsync(ReplExecutionContext, ReplNext)
Section titled “InvokeAsync(ReplExecutionContext, ReplNext)”Wraps command execution in a logging scope populated from the current REPL context.
public static ValueTask InvokeAsync(ReplExecutionContext context, ReplNext next)Parameters
Section titled “Parameters”context(ReplExecutionContext)next(ReplNext)