Skip to content

onezeroone-dev/OZOLogger-PowerShell-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OZOLogger PowerShell Module Installation and Usage

Description

Provides a simple method for logging to the Windows Event Log from PowerShell scripts.

Optional Prerequisite

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.

Installation

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 OZOLogger

Usage

Import this module in your script or console to make the functions available for use:

Import-Module OZOLogger

Functions

Classes

Reviewing Events

Open 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.

About

Provides a simple means of logging to the Windows Event Log from scripts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published