easitab / EPR.GlobalFunctions

Provide functions to be used in script executed by EasitProcessRunner
https://docs.easitgo.com/techspace/epr/globalfunctions/
Apache License 2.0
1 stars 0 forks source link

Log rotation does not work as intended #59

Closed easitab-owner closed 6 months ago

easitab-owner commented 7 months ago

Logs are not rotated as configured, this is due to this code snippet.

if ([string]::IsNullOrWhiteSpace("$RotationInterval")) { if (!([string]::IsNullOrWhiteSpace("$($globalLoggerSettings.RotationInterval)"))) { $LogDirectory = $globalLoggerSettings.RotationInterval } else { $RotationInterval = 30 } }