<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0-preview.2.21154.6" />

EventSourceCreationData

Represents the configuration settings used to create an event log source on the local computer or a remote computer.
public int CategoryCount { get; set; }

Gets or sets the number of categories in the category resource file.

public string CategoryResourceFile { get; set; }

Gets or sets the path of the resource file that contains category strings for the source.

public string LogName { get; set; }

Gets or sets the name of the event log to which the source writes entries.

public string MachineName { get; set; }

Gets or sets the name of the computer on which to register the event source.

public string MessageResourceFile { get; set; }

Gets or sets the path of the message resource file that contains message formatting strings for the source.

public string ParameterResourceFile { get; set; }

Gets or sets the path of the resource file that contains message parameter strings for the source.

public string Source { get; set; }

Gets or sets the name to register with the event log as an event source.

public EventSourceCreationData(string source, string logName)

Initializes a new instance of the EventSourceCreationData class with a specified event source and event log name.