Skip to content

net90_EventLogHelper_SmartEventLogger_DefaultSource

dparvin edited this page Aug 2, 2025 · 1 revision

SmartEventLogger.DefaultSource method (1 of 2)

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").

Return Value

The name of a registered event source, or an empty string if none are found.

See Also


SmartEventLogger.DefaultSource method (2 of 2)

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.

Return Value

The name of a registered event source, or an empty string if none are found.

See Also

Clone this wiki locally