icinga-powershell-framework/lib/core/logging/Write-IcingaDebugMessage.psm1

13 lines
289 B
PowerShell
Raw Normal View History

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