KestrunContext.BroadcastLog method

Synchronous wrapper for BroadcastLogAsync.

public bool BroadcastLog(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