Provides a simple method for logging to the Windows Event Log from PowerShell scripts.
Install and run the OZO Windows Event Log Provider Setup script as Administrator to implement the One Zero One provider which allows the optimal use of this module.
This module is published to PowerShell Gallery. Ensure your system is configured for this repository then execute the following in an Administrator PowerShell:
Install-Module OZOLoggerImport this module in your script or console to make the functions available for use:
Import-Module OZOLoggerOpen Windows Event Viewer to review events. When the One Zero One provider is available, events are written to Applications and Services Logs > One Zero One > Operational using Information (1000), Warning (1001), or Error (1002) events.
Otherwise, messages are written to Services and Applications Logs > Microsoft > Windows > PowerShell > Operational as Information (4100) events.