Posts

Showing posts from December, 2013

Create Event Logs using c#

WSEventLog.cs using System; using System.Diagnostics; using System.Security; namespace CreateDocuments {     public class WSEventLog     {         string DriveName = "CreateDocuments";         string LogName = "Create Documents";         private EventLog eventLog;         private bool initialized;         public WSEventLog(EventLog eventLog)         {             this.eventLog = eventLog;         }         //Check and create source         public void Initialize()         {             try             {                 try                 { ...