Skip to content

net472_EventLogHelper.Enums_SourceResolutionBehavior

dparvin edited this page Sep 10, 2025 · 1 revision

SourceResolutionBehavior enumeration

Specifies how to resolve situations where an event source is already registered to a different log than the one requested. This determines whether logging should fail, adapt, or create a new source.

public enum SourceResolutionBehavior

Values

name value description
Strict 0 Require an exact match. If the source is registered under a different log than the one requested, logging fails with an error.
UseSourceLog 1 If the source is registered under a different log than requested, automatically switch to that log and proceed with logging.
UseLogsDefaultSource 2 If the source is not registered to the specified log, use the log's default source (the log name itself if available, otherwise the first registered source).

See Also

Clone this wiki locally