Write-Log

1.2


Write-Log is a simple PowerShell Logger for your script.

Write-Log write the log on the console with color (INFO/WARNING : Yellow, SUCCESS : Green,ERROR : Red, DEBUG : DarkYellow)
and create and log file on the execution folder of the script. The default name of the log is YourScriptName_log.txt

Usage :
Write-Log [-errorLevel] {INFO | SUCCESS | WARNING | ERR

Write-Log is a simple PowerShell Logger for your script.

Write-Log write the log on the console with color (INFO/WARNING : Yellow, SUCCESS : Green,ERROR : Red, DEBUG : DarkYellow)
and create and log file on the execution folder of the script. The default name of the log is YourScriptName_log.txt

Usage :
Write-Log [-errorLevel] {INFO | SUCCESS | WARNING | ERROR | DEBUG} [[-message] <string>] [OPTIONAL[-stack] <string>]
[<CommonParameters>]
Show more

Installation Options

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

Install-Module -Name Write-Log

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

Install-PSResource -Name Write-Log

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) 2019 Brice FOURIE. Tous droits réservés.

Package Details

Author(s)

  • Brice FOURIE

Functions

Write-Log

Dependencies

This module has no dependencies.

FileList

Version History

Version Downloads Last updated
1.2 (current version) 3,698 10/23/2019
1.1 18 10/23/2019
1.0 361 10/23/2019