-
Notifications
You must be signed in to change notification settings - Fork 0
net90_EventLogHelper.Interfaces_IEventLogWriter_CreateEventSource
dparvin edited this page Sep 10, 2025
·
1 revision
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. |
Wraps String). If the source already exists, no action is taken.
- interface IEventLogWriter
- namespace EventLogHelper.Interfaces
- assembly EventLogHelper