Update samy.ps1

This commit is contained in:
2025-12-21 00:59:22 -05:00
committed by syelle
parent 7c00dd801b
commit 820575d36d

View File

@@ -346,7 +346,7 @@ $ConfirmPreference = 'None'
# - Level-based Event IDs and console colors # - Level-based Event IDs and console colors
# - Global in-memory log cache # - Global in-memory log cache
# - One-time Event Log/source initialization with optional auto-elevation # - One-time Event Log/source initialization with optional auto-elevation
function Write-LogHelper { function global:Write-LogHelper {
<# <#
.SYNOPSIS .SYNOPSIS
Standardized logging utility with console/file output and Windows Event Log support, 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" # EventSource = "SVSMSP_Module"
# EventLog = "SVSMSP Events" # EventLog = "SVSMSP Events"
# ───────────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────────
function Write-LogHybrid { function global:Write-LogHybrid {
[CmdletBinding()] [CmdletBinding()]
param( param(
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]