14 lines
275 B
PowerShell
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]";
|
|
}
|
|
|