-
Notifications
You must be signed in to change notification settings - Fork 0
net90_EventLogHelper_SmartEventLogger_DefaultSource
dparvin edited this page Aug 2, 2025
·
1 revision
Attempts to determine a default source name for the given event log by inspecting the registry.
public static string DefaultSource(string log)| parameter | description |
|---|---|
| log | The name of the event log (e.g., "Application", "System"). |
The name of a registered event source, or an empty string if none are found.
- class SmartEventLogger
- namespace EventLogHelper
- assembly EventLogHelper
Attempts to determine a default source name for the given event log by inspecting the registry.
public static string DefaultSource(string logName, string machineName)| parameter | description |
|---|---|
| logName | The name of the event log (e.g., "Application", "System"). |
| machineName | The target machine name, or "." for the local machine. |
The name of a registered event source, or an empty string if none are found.
- class SmartEventLogger
- namespace EventLogHelper
- assembly EventLogHelper