This constructor sets the Log property to the logName parameter, the MachineName property to the machineName parameter, and the Source property to the source parameter. The Source property is required when writing to an event log. However, if you are only reading from an event log, only the Log and MachineName properties are required (as long as the event log on the server has a source already associated with it). If you are only reading from the event log, another overload of the constructor might suffice.
The following table shows initial property values for an instance of EventLog.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.