https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.traceswitch?view=net-10.0&redirectedfrom=MSDN
TraceSwitch Class (System.Diagnostics) | Microsoft Learn
Provides a multilevel switch to control tracing and debug output without recompiling your code.
class systemdiagnosticsmicrosoftlearn