-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
Description
Describe the change
Shallow logging
Private functions => debug
Public functions => verbose > debug
Get-GitHubUser -Verbose
Get-GitHubOrganization -DebugDeep logging
Logging from referenced external functions use PowerShell logging preferences to enable deep logging.
$VerbosePreference = 'Continue'
$DebugPreference = 'Continue'Have a function that shows invocations
function Get-Caller {
<#
.SYNOPSIS
Shows the caller of the current function.
.EXAMPLE
Show-Caller
Shows the caller of the current function.
#>
[outputType([string])]
[CmdletBinding()]
param()
$stack = Get-PSCallStack
$called = $stack[1].Command
$caller = $stack[2].Command
"$caller called $called"
}Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done