icinga-powershell-framework/lib/core/logging/Register-IcingaEventLog.psm1

13 lines
253 B
PowerShell
Raw Normal View History

function Register-IcingaEventLog()
{
$Registered = [System.Diagnostics.EventLog]::SourceExists(
'Icinga for Windows'
);
if ($Registered) {
return;
}
New-EventLog -LogName Application -Source 'Icinga for Windows';
}