BenLPed.Scriptlogging

1.10.0.1

By starting a script using the start-log command, you tell where the log file should be located, what it should be called,
and possibly whether it should delete old log files.`
Every time you have created some code that you thought should be logged, you use write-log together with the description you want.
You can also add a fave code. 1 = Normal (1 is default),
By starting a script using the start-log command, you tell where the log file should be located, what it should be called,
and possibly whether it should delete old log files.`
Every time you have created some code that you thought should be logged, you use write-log together with the description you want.
You can also add a fave code. 1 = Normal (1 is default), 2 = if the text should be yellow, to show something is not normal,
but not an error. 3 = Error. It could e.g. is used in a try-catch, so when the catch comes into use, the error message will be 3 and thereby you know that it has failed.
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.1

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

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 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 (current version) 7 2/27/2024
Show less