0013 - Howto guide for Powershell logging

Опубликовано: 14 Март 2026
на канале: clouddeveloper.io
7,772
110

Title: Howto guide for Powershell logging

In this tutorial we cover the topic of logging in powershell scripts using VScode or Visual Studio Code

Logging is a very important part of writing scripts which helps you in debugging the logic as well as understanding when something was executed as well as what was executed. It is also important to know the specific functions that were executed and in which files.
In this video we go through a quick tutorial that shows you how to create a helpful function that takes in a message argument as well as a type of a message (info, warning, error) and outputs it to the screen.
You can easily adjust this script to allow you to output the content to a file. The most important part of the function is the logic to obtain the actual information about what scripts and functions were being executed in order to capture that for later usage.


Google+: https://plus.google.com/b/10136823524...
Facebook: https://www.fb.me/clouddeveloper.io
Twitter:   / ilozovyy  

#powershell #logging #devops #winserv #vscode