Created
November 18, 2013 22:40
-
-
Save toenuff/7536659 to your computer and use it in GitHub Desktop.
Write-Trace - Write a trace message with PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Write-Trace { | |
param( | |
[Parameter(Mandatory=$true, Position=0, ValueFromRemainingArguments=$true)] | |
[string]$message, | |
[Parameter(Mandatory=$false)] | |
[string]$category="PS Script" | |
) | |
[System.Diagnostics.Debug]::WriteLine($message, $category) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment