PowerShell: Logging in JSON format
· ☕ 4 min read · ✍️ Brett Johnson
When writing scripts for clients, it’;s important to generate good logs. It’;s a common position where a script works perfectly in test. But in production something is askew.
Being able to look back at the process and step through after the fact is essential.
Usually my logs are written in CSV format. CSV is great for parsing. But, it’;s awful to run in a text file. Due to this, I decided to modify my log function.