EventWritten and Security Log
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Using C# I've created a service and want to get notification of events written to all event logs on the local machine. The follow code works fine for Application and System logs but I don't get any events for the Security log? Any help would be greatly aprecated. Mike Willis public void appname_EntryWritten( object sender, EntryWrittenEventArgs e) { ... do some stuff } int iLogCount=System.Diagnostics.EventLog .GetEventLogs().Length; this.eLogs=System.Diagnostics.EventLog .GetEventLogs(); for (int i=0; i