Public/ps1/Log/Set-LogConfiguration.ps1
function Set-LogConfiguration { param ( [String] $LogFolder, [int] $LogHours, [int] $LogRetention) if ($LogFolder) { Set-ConfigurationValue -name LogFolder -value $LogFolder } else { $folder = Get-LeftConnectConfigurationFolder Set-ConfigurationValue -name LogFolder -value (Join-Path $folder "logfile.txt") } if ($LogHours) { Set-ConfigurationValue -name LogHours -value $LogHours } else { Set-ConfigurationValue -name LogHours -value 24 } if ($LogRetention) { Set-ConfigurationValue -name LogRetention -value $LogRetention } else { Set-ConfigurationValue -name LogRetention -value 7 } Load-LogConfiguration } |