Skip to content

Instantly share code, notes, and snippets.

@torgro
Created October 4, 2015 20:10
Show Gist options
  • Select an option

  • Save torgro/fa49521812ff195d6e78 to your computer and use it in GitHub Desktop.

Select an option

Save torgro/fa49521812ff195d6e78 to your computer and use it in GitHub Desktop.
function Test-Logging
{
[cmdletbinding()]
Param(
[string]$Name
)
$f = $MyInvocation.InvocationName
Write-Verbose -Message "$f - START"
Write-Verbose -Message "$f - Parameter name='$Name'"
Write-Output $Name
Write-Verbose -Message "$f - END"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment