<PackageReference Include="System.Diagnostics.EventLog" Version="5.0.0" />

PathType

public enum PathType
Specifies that a string contains a name of an event log or the file system path to an event log file.

A path parameter contains the file system path to an event log file.

LogName = 1

A path parameter contains the name of the event log.