PSScriptlogging

1.10.1.1

This module can help you create logging in your scripts. You can follow along live, which makes it easy to see what is happening. It also records which user runs the script, which line of the script is executed and the time. So if something goes wrong, it s easy to find out what went wrong.

When you want to add something to the log, you write write-log "what needs
This module can help you create logging in your scripts. You can follow along live, which makes it easy to see what is happening. It also records which user runs the script, which line of the script is executed and the time. So if something goes wrong, it s easy to find out what went wrong.

When you want to add something to the log, you write write-log "what needs to happen or what happens" and it is added to the log file. By default, it automatically sets 1 after "Text", but if you want to draw attention to something, you can write 2 numbers and the error text will turn yellow. If you write a number 3, the text turns red, it is only used in case of error.
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSScriptlogging

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSScriptlogging

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2024 Benni Ladevig Pedersen. All rights reserved.

Package Details

Author(s)

  • Benni Ladevig Pedersen

Tags

Logging Logger Logs ScriptLog Scripting

Functions

Start-Log Write-Log

Dependencies

This module has no dependencies.

Release Notes


       v1.10.1.0
       - Full Version

       v1.10.1.1
       - Bug Fix

       

FileList

Version History

Version Downloads Last updated
1.10.1.1 (current version) 19 6/10/2024
1.10.1.0 4 6/10/2024