KestrunContext.BroadcastLogAsync method

Asynchronously broadcasts a log message to all connected SignalR clients using the IRealtimeBroadcaster service.

public Task<bool> BroadcastLogAsync(string level, string message, 
    CancellationToken cancellationToken = default)
parameter description
level The log level (e.g., Information, Warning, Error, Debug, Verbose).
message The log message to broadcast.
cancellationToken Optional: Cancellation token.

Return Value

True if the log was broadcast successfully; otherwise, false.

See Also