1

Using Quartz.Net 3.1.3 with an ASP.NET Core app using Serilog and I'm trying to disable debug logging of quartz because it spams the logs in a production environment.

I'm setting the following in appsettings.json:

"Logging": {
    "LogLevel": {
      "System": "Warning",
      "Microsoft": "Warning",
      "MyCompanyNameSpace": "Information",
      "Quartz": "Warning"
    }
},

but I can still see that is logging:

2021-11-02 09:49:34.025 +02:00 [DBG] Calling Execute on job MyCompany.SyncJobGroup.SyncJobA
2021-11-02 09:49:34.154 +02:00 [DBG] Trigger instruction : DeleteTrigger
2021-11-02 09:49:34.154 +02:00 [DBG] Deleting trigger

How can I disable it?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
pantonis
  • 5,601
  • 12
  • 58
  • 115
  • You can see a specific case of the same being done here: https://stackoverflow.com/questions/877217/turn-off-debug-logging-in-quartz-net/7973019 – T. Nielsen Nov 02 '21 at 08:36
  • 1
    @T.Nielsen The article is not about ASP.NET Core – pantonis Nov 02 '21 at 08:49
  • I just disable Quartz logging completely when running in Debug mode by using `Quartz.Logging.LogProvider.IsDisabled = true`. It's not great, but I prefer it over the log spam. – ScottieMc Mar 25 '23 at 18:31

0 Answers0