2019-03-06 00:44:10 +08:00
|
|
|
var connection = new HubConnectionBuilder()
|
|
|
|
.WithUrl("https://example.com/my/hub/url")
|
|
|
|
.ConfigureLogging(logging =>
|
|
|
|
{
|
|
|
|
// Log to the Console
|
|
|
|
logging.AddConsole();
|
|
|
|
|
|
|
|
// This will set ALL logging to Debug level
|
2019-05-23 23:36:57 +08:00
|
|
|
logging.SetMinimumLevel(LogLevel.Debug);
|
2019-03-06 00:44:10 +08:00
|
|
|
})
|
2019-05-23 23:36:57 +08:00
|
|
|
.Build();
|