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?

3
  • You can see a specific case of the same being done here: stackoverflow.com/questions/877217/… Commented Nov 2, 2021 at 8:36
  • 1
    @T.Nielsen The article is not about ASP.NET Core Commented Nov 2, 2021 at 8: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. Commented Mar 25, 2023 at 18:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.