title: Log hangfire events using existing serilog
body: <p>Im new to hangfire, and im trying to setup a way to log the events using my existing serilog logger in an asp.net web api. Here is my logger class: </p>
  
  <pre><code>public static class LoggerInitializer
  {
      private static ILogger CreateLog()
      {
          var settings = Settings.Instance;
          Log.Logger = new LoggerConfiguration().
              MinimumLevel.Debug().
              WriteTo.RollingFile(settings.LoggerDebugDirectory +"Debug-{Date}.txt", restrictedToMinimumLevel: Serilog.Events.LogEventLevel.Debug, 
                  outputTemplate: "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level}] {Message}{NewLine}{Exception}").
              WriteTo.RollingFile(settings.LoggerVerboseDirectory + "Debug-{Date}.txt").
              CreateLogger();
          return Log.Logger;
      }
      static ILogger _logger;
      public static ILogger GetLogger()
      {
          if (_logger != null)
              return _logger;
          return _logger = CreateLog();
      }
  }
  </code></pre>
  
  <p>and in my startup file I add the code from the hangfire documentation: </p>
  
  <pre><code>GlobalConfiguration.Configuration
              .UseSqlServerStorage(Settings.Instance.NLSContextConnectionString);
  
          app.UseHangfireDashboard();
          app.UseHangfireServer();
  </code></pre>
  
  <p>My hangfire works perfectly, but how do i enable make hangfire use my serilog?</p>