diff --git a/samy.ps1 b/samy.ps1 index 1f4e9ca..86c2d18 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -346,7 +346,7 @@ $ConfirmPreference = 'None' # - Level-based Event IDs and console colors # - Global in-memory log cache # - One-time Event Log/source initialization with optional auto-elevation - function Write-LogHelper { + function global:Write-LogHelper { <# .SYNOPSIS Standardized logging utility with console/file output and Windows Event Log support, @@ -542,7 +542,7 @@ if (-not [System.Diagnostics.EventLog]::SourceExists('$EventSource')) { # EventSource = "SVSMSP_Module" # EventLog = "SVSMSP Events" # ───────────────────────────────────────────────────────────────────────── - function Write-LogHybrid { + function global:Write-LogHybrid { [CmdletBinding()] param( [Parameter(Mandatory = $true)]