QuickLogger icon indicating copy to clipboard operation
QuickLogger copied to clipboard

Error on CompressLogFile

Open fintechyazilim opened this issue 2 years ago • 1 comments

Hi, If you give DailyRotateFileDateFormat and set the DailyRotate = True the function of CompressLogFile thows an exception. Because GetLogFileBackup parameter is True therefor GetLogFileBackup function returns empty result. (There is no zip file yet in the directory) zip.Open(GetLogFileBackup(1,True),zmWrite);

Can you please check this line of the code?

etc: i have changed the code like this. zipfile := GetLogFileBackup(1, False); if zipfile.IsEmpty then Exit else zipfile := zipfile + '.zip'; Zip.Open(zipfile, zmWrite);

Thank you.

fintechyazilim avatar Jul 25 '23 21:07 fintechyazilim

Yes, I see. It's a bug. I'll fix.

exilon avatar Oct 10 '24 15:10 exilon