System Diagnostics C# by API

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
public class MainClass
{
    public static void Main()
    {
        Trace.Listeners.Add(new ConsoleTraceListener());
    }
}