Update samy.ps1
This commit is contained in:
4
samy.ps1
4
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)]
|
||||
|
||||
Reference in New Issue
Block a user