mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
13 lines
289 B
PowerShell
13 lines
289 B
PowerShell
|
|
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;
|
||
|
|
}
|