This blog shows on how to log an event entry in the trace event using C#

public static void LogEvent(string strmessage)
    {
    EventLog.WriteEntry("Event trace sample", strmessage);
    }
Ebook Download
View all
Learn
View all