using (var eventLog = new EventLog(logName))
{
events = new EventsList(logName);
foreach (var entry in eventLog.Entries.OfType<EventLogEntry>().Reverse().Take(100))
{
events.Events.Add(entry);
}
return events;
}