KestrunHostSignalRExtensions.BroadcastLogAsync method

Broadcasts a log message to all connected SignalR clients using the best available service provider.

public static Task<bool> BroadcastLogAsync(this KestrunHost host, string level, string message, 
    HttpContext? httpContext = null, CancellationToken cancellationToken = default)
parameter description
host The KestrunHost instance.
level The log level (e.g., Information, Warning, Error, Debug, Verbose).
message The log message to broadcast.
httpContext Optional: The current HttpContext, if available.
cancellationToken Optional: Cancellation token.

See Also