Skip to content

ReplLoggingMiddleware

Adds ambient REPL execution metadata to the active ILogger scope.

public static class ReplLoggingMiddleware

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)

ValueTask