This document outlines changes needed per version upgrade basis. You need to check the steps for each version you are jumping over. You should also check the complete change log (opens new window).

TIP

If you are a new user starting with the latest version, you don't need to follow this guide. Just jump right to the tutorial

# Migrating from Version 3.x to 4.x

# Logging

LibLog has been replaced with the Microsoft.Logging.Abstraction library. Reconfigure logging using a ILoggerFactory, an example, with a Microsoft.Logging.SimpleConsole logger:

 var loggerFactory = LoggerFactory.Create(builder =>
      {
          builder
              .SetMinimumLevel(LogLevel.Debug)
              .AddSimpleConsole();
      });
      LogProvider.SetLogProvider(loggerFactory);

See the Quartz.Examples project for examples on setting up Serilog and Microsoft.Logging with Quartz.

An alternative approach is to configure the LoggerFactory via a HostBuilder ConfigureServices wire-up:


 Host.CreateDefaultBuilder(args)
  .ConfigureServices((hostContext, services) =>
  {
      services.AddQuartz(q =>
            {
              q.SetLoggerFactory(loggerFactory);
            });
  }

Further information on configuring Microsoft.Logging can be found at Microsoft docs (opens new window)