List <string> ILogging.EntriesRequest() { LogEntriesEventArgs args = new LogEntriesEventArgs(); GetEntries?.Invoke(this, args); return(args.Args); }
private void GetEntries(Object sender, LogEntriesEventArgs args) { // Obtain the Log Entries of the Event Log EventLogEntryCollection myEventLogEntryCollection = eventLogger.Entries; // Display the 'Message' property of EventLogEntry. for (int i = 0; i < myEventLogEntryCollection.Count; i++) { args.Args.Add(myEventLogEntryCollection[i].Message); } }