icinga-powershell-framework/lib/core/logging/Write-IcingaDebugMessage.psm1
2020-03-24 20:07:34 +01:00

16 lines
357 B
PowerShell

function Write-IcingaDebugMessage()
{
param(
[string]$Message
);
if ([string]::IsNullOrEmpty($Message)) {
return;
}
if ($global:IcingaDaemonData.DebugMode -eq $FALSE) {
return;
}
Write-EventLog -LogName Application -Source 'Icinga for Windows' -EntryType Information -EventId 1000 -Message $Message;
}