Code to log an event into the Event Entry

Karthikanbarasan
Posted by Karthikanbarasan under C# category on | Points: 40 | Views : 1471
public static void LogEvent(string strmessage)
{
EventLog.WriteEntry("Event trace sample", strmessage);
}

Comments or Responses

Login to post response