AspNetCore.Docs/aspnetcore/signalr/diagnostics/net-client-debug-log.cs

11 lines
315 B
C#

var connection = new HubConnectionBuilder()
.WithUrl("https://example.com/my/hub/url")
.ConfigureLogging(logging =>
{
// Log to the Output Window
logging.AddDebug();
// This will set ALL logging to Debug level
logging.SetMinimumLevel(LogLevel.Debug)
})
.Build();