-
Notifications
You must be signed in to change notification settings - Fork 0
net90_EventLogHelper_SmartEventLogger_SetWriter
dparvin edited this page Sep 10, 2025
·
3 revisions
Sets the IEventLogWriter implementation used for logging operations.
public static void SetWriter(IEventLogWriter writer)| parameter | description |
|---|---|
| writer | The custom writer instance to use. This allows swapping out the default RealEventLogWriter for testing or alternate logging implementations. |
This method is primarily intended for use in unit tests or advanced scenarios where log output should be redirected or suppressed. For example, a test implementation may capture and inspect log data without writing to the real event log.
- interface IEventLogWriter
- class SmartEventLogger
- namespace EventLogHelper
- assembly EventLogHelper