/// <summary>
 ///     Log to the Serilog <see cref="Serilog.Log" /> class.
 /// </summary>
 /// <param name="configuration">The bus configuration to apply the logger to.</param>
 /// <returns>Bus configuration.</returns>
 public static BusBuilderConfiguration WithSerilogLogger(this BusBuilderConfiguration configuration)
 {
     return(configuration
            .WithLogger(new SerilogStaticLogger()));
 }
 /// <summary>
 ///     Log to the provided Log4net <see cref="log4net.ILog" />.
 /// </summary>
 /// <param name="configuration">The bus configuration to apply the logger to.</param>
 /// <param name="logger">The logger.</param>
 /// <returns>Bus configuration.</returns>
 public static BusBuilderConfiguration WithLog4netLogger(this BusBuilderConfiguration configuration, ILog logger)
 {
     return(configuration
            .WithLogger(new Log4NetLogger(logger)));
 }