Repository navigation
LoggerPro 2.1.2
Fixed
- File appenders recover after a failed write or rotation (#113).
TLoggerProFileAppenderandTLoggerProSimpleFileAppendernow implementTryToRestart, so logging resumes once the file is accessible again, for example after a rotation whose rename failed because another process held the file open.TLoggerProSimpleFileAppenderno longer leaves a dangling writer after a failed rename. A dead appender no longer makesLog.*callers wait up to ~361 s per item: the newTThreadSafeQueue<T>.TryEnqueuelets the excess go through the queue-full path. Healthy and slow appenders keep the existing back-pressure. - A hung
WriteLogno longer blocksLog.*callers. An appender stuck insideWriteLog(aWriteFileblocked in a file-system filter driver, for example) is treated as failing once one call has run for more than 2 s. The back-off waits are sliced to 100 ms, so a waiter is released as soon as the appender fails or stalls, or the queue drains. Follow-up to #113, reported by paveltresnak. TLoggerProFileBySourceAppenderleaked a writer on every size rotation. The rotated-outTStreamWriterwas extracted from the dictionary and never freed. Besides the memory, its log file stayed open until the process exited, so retention cleanup could not delete it. A regression test checks that rotated files are released.- Delphi 10.2.3 Tokyo build restored for the file appenders. Assigning the
TDirectory.GetFilesresult to aTArray<string>did not compile on Tokyo. Thanks to Mark Lobanov for reporting and fixing it downstream (delphimvcframework#914).
Added
- DPM manifest (
LoggerPro.dspec): LoggerPro can be installed with the Delphi Package Manager as a single source package. All runtime packages (d100 to d130) now include the Win64 platform. Manual installation is unchanged.
Tests: 224/224 on Delphi 13 Win32. The runtime package builds clean on Delphi 13 (Win32 and Win64).