EventLog Class (System.Diagnostics) | Microsoft Docs
docs.microsoft.com › systemThe Entries property is automatically populated with the event log's list of entries. To write to an event log, specify or create an event source (Source property). You must have administrative credentials on the computer to create a new event source. The event source registers your application with the event log as a valid source of entries.