Commit 0a21d644 authored by Michael Taufen's avatar Michael Taufen

Rotate windows logs

parent 18cc1156
...@@ -129,6 +129,9 @@ try { ...@@ -129,6 +129,9 @@ try {
Log-Output 'Waiting 15 seconds for node to join cluster.' Log-Output 'Waiting 15 seconds for node to join cluster.'
Start-Sleep 15 Start-Sleep 15
Verify-WorkerServices Verify-WorkerServices
$config = New-FileRotationConfig
Schedule-LogRotation -Pattern '.*\.log$' -Path ${env:LOGS_DIR} -RepetitionInterval $(New-Timespan -Hour 1) -Config $config
} }
catch { catch {
Write-Host 'Exception caught in script:' Write-Host 'Exception caught in script:'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment