Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I disable log output? #130

Open
9854626 opened this issue Apr 11, 2023 · 1 comment
Open

How do I disable log output? #130

9854626 opened this issue Apr 11, 2023 · 1 comment

Comments

@9854626
Copy link

9854626 commented Apr 11, 2023

How can I turn off the log output? I do not want to output these trace logs all the time. What should I do

@Marfusios
Copy link
Owner

Hey, sorry for the late response,
I plan to migrate to Microsoft.Extensions.Logging, but it should be doable even in the current setup.
It depends on the logging library, for example, for Serilog, it is possible to filter out by context, e.g. in appsettings.json:

"Serilog": {
    "MinimumLevel": {
      "Default": "Debug",
      "Override": {
        "System": "Information",
        "Microsoft": "Information",
        "Websocket.Client": "Warning"
      }
    }
  }

Working example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants