Skip to content

net90_EventLogHelper.Interfaces_IEventLogWriter_CreateEventSource

dparvin edited this page Sep 10, 2025 · 1 revision

IEventLogWriter.CreateEventSource method

Creates a new event source for the specified log on the given machine, if it does not already exist.

public void CreateEventSource(ref string sourceName, ref string logName, ref string machineName, 
    int maxKilobytes, int retentionDays)
parameter description
sourceName The name of the event source.
logName The log with which to associate the source (e.g., "Application").
machineName The name of the machine (use "." for the local machine).
maxKilobytes The maximum kilobytes.
retentionDays The retention days.

Remarks

Wraps String). If the source already exists, no action is taken.

See Also

Clone this wiki locally