diff --git a/inc/vCenter-SSL.ps1 b/inc/vCenter-SSL.ps1 index 44e1f11b..45734342 100644 --- a/inc/vCenter-SSL.ps1 +++ b/inc/vCenter-SSL.ps1 @@ -24,13 +24,14 @@ function Write-Log { param( [ValidateSet('INFO','WARN','ERROR')] [string]$Level, - [string]$Message + [string]$Message, + [string]$ForegroundColor ) $ts = Get-Date -Format 'yyyy-MM-dd HH:mm:ss' $line = "[$ts] $Level : $Message" - Write-Host $line + Write-Host $line -ForegroundColor $ForegroundColor try { $dir = Split-Path $LogFile if (-not (Test-Path $dir)) {