icinga-powershell-framework/lib/core/icingaagent/readers/Read-IcingaAgentDebugLogFile.psm1
2019-09-29 18:25:40 +02:00

10 lines
309 B
PowerShell

function Read-IcingaAgentDebugLogFile()
{
$Logfile = Join-Path -Path (Get-IcingaAgentLogDirectory) -ChildPath 'debug.log';
if ((Test-Path $Logfile) -eq $FALSE) {
Write-Host 'Icinga 2 debug logfile not present. Unable to load it';
return;
}
Get-Content -Path $Logfile -Wait;
}