-
Notifications
You must be signed in to change notification settings - Fork 0
net90_EventLogHelper.Enums_SourceResolutionBehavior
dparvin edited this page Sep 10, 2025
·
1 revision
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| 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). |
- namespace EventLogHelper.Enums
- assembly EventLogHelper
- SourceResolutionBehavior.cs