Write-Log.ps1

1
2
3
4
5
6
function Write-Log {
  param([string]$logstring)
  Write-Debug -Message "Append ""$logstring"" to log file: ""$logfile"""
  Add-Content $logfile -Value $logstring
}