BenLPed.Scriptlogging

1.10.0.7

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 BenLPed.Scriptlogging

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

Install-PSResource -Name BenLPed.Scriptlogging

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.0.7
       - Fix Bug

       v1.10.0.6
       - Fix Bug - Function Missing

       v1.10.0.5
       - Bug Fix

       v1.10.0.4
       - Fix Documentation

       v1.10.0.3
       - Fix Documentation

       v1.10.0.2
       - Fix Documentation

       v1.10.0.1
       - Rewrite whole script to module

FileList

Version History

Version Downloads Last updated
1.10.0.7 (current version) 7 3/20/2024
1.10.0.6 7 3/20/2024
1.10.0.5 7 3/20/2024
1.10.0.4 14 3/8/2024
1.10.0.3 5 3/8/2024
1.10.0.2 6 3/8/2024
1.10.0.1 7 2/27/2024
Show more