public static IHubConnectionBuilder WithConsoleLogger(this IHubConnectionBuilder hubConnectionBuilder, LogLevel logLevel)
 {
     return(hubConnectionBuilder.WithLogger(loggerFactory =>
     {
         loggerFactory.AddConsole(logLevel);
     }));
 }