modules/HomeLab.Logging/Public/Write-SuccessLog.ps1
<#
.SYNOPSIS Writes a success log message .DESCRIPTION Wrapper function for Write-Log that specifically logs messages with the Success level .PARAMETER Message The message to log .PARAMETER LogFilePath Optional path to the log file. If not specified, uses the current log file path .EXAMPLE Write-SuccessLog -Message "VPN connection established successfully" .NOTES Part of HomeLab.Logging module #> function Write-SuccessLog { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$Message, [Parameter(Mandatory = $false)] [string]$LogFilePath = $script:LogPath ) Write-Log -Message $Message -Level Success -LogFile $LogFilePath } |