https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.consoletracelistener?view=netframework-4.8.1&redirectedfrom=MSDN
ConsoleTraceListener Class (System.Diagnostics) | Microsoft Learn
Directs tracing or debugging output to either the standard output or the standard error stream.
class systemdiagnosticsmicrosoftlearn