BenLPed.Scriptlogging

1.10.0.3

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 "wha
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.0.0

Installation Options

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

Install-Module -Name BenLPed.Scriptlogging -RequiredVersion 1.10.0.3

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

Install-PSResource -Name BenLPed.Scriptlogging -Version 1.10.0.3

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) Benni Ladevig Pedersen. All rights reserved.

Package Details

Author(s)

  • Benni Ladevig Pedersen

Tags

Logging Logger Logs

Functions

Start-Log Write-Log

Dependencies

This module has no dependencies.

FileList

Version History

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