ps/Modules/Alkami.PowerShell.Common/Public/Get-LogLeadName.ps1
2023-05-30 22:51:22 -07:00

14 lines
275 B
PowerShell

function Get-LogLeadName{
<#
.SYNOPSIS
Get the name of the function that called for the log lead so we consistently define it.
#>
[CmdletBinding()]
[OutputType([System.String])]
Param()
$command = (Get-PSCallStack)[1].Command
return "[$command]";
}