Skip to content

LoggerPro 2.1.2

Latest

Choose a tag to compare

@danieleteti danieleteti released this 29 Oct 11:09
· 1 commit to master since this release

LoggerPro 2.1.2

Fixed

  • File appenders recover after a failed write or rotation (#113). TLoggerProFileAppender and TLoggerProSimpleFileAppender now implement TryToRestart, so logging resumes once the file is accessible again, for example after a rotation whose rename failed because another process held the file open. TLoggerProSimpleFileAppender no longer leaves a dangling writer after a failed rename. A dead appender no longer makes Log.* callers wait up to ~361 s per item: the new TThreadSafeQueue<T>.TryEnqueue lets the excess go through the queue-full path. Healthy and slow appenders keep the existing back-pressure.
  • A hung WriteLog no longer blocks Log.* callers. An appender stuck inside WriteLog (a WriteFile blocked 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.
  • TLoggerProFileBySourceAppender leaked a writer on every size rotation. The rotated-out TStreamWriter was 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.GetFiles result to a TArray<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).