websocket-client
websocket-client copied to clipboard
How do I disable log output?
How can I turn off the log output? I do not want to output these trace logs all the time. What should I do
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"
}
}
}