|
Version 2.0
Downloads : 9 Thread-safe logging system for Delphi with multiple output targets, auto-pruning and severity tracking. |
|||||||
|---|---|---|---|---|---|---|---|
|
A lightweight, thread-safe logging system for Delphi applications. Write log messages to multiple outputs simultaneously - files, console, or GUI memos. Uses a singleton pattern so you can log from anywhere in your code without passing logger instances around. Features include daily rotating log files with automatic pruning of old files, auto-close after inactivity, optional class/method context tracking, exception logging with formatted error blocks, severe-exception tracking for watchdog use, and precise timestamps with millisecond accuracy. Version 2.0 adds automatic log file pruning, an On_Error hook for the file output, several new Write overloads (string/boolean/integer key-value pairs), and a Last_Severe property. It also fixes Add_Output incorrectly discarding a second output of the same class - multiple TFile_Log_Output instances (eg. logging to two different files at once) now work correctly again. Note: the ATime parameter was removed from TLogger.Write in favour of the Include_TimeStamp property - see the article for the change. Contains 7 units: PBS.LIB.Log (main singleton), PBS.LIB.Log.Disk (file output), PBS.LIB.Log.Console (console output), PBS.LIB.Log.Memo (TMemo output), PBS.LIB.Prune_Files and PBS.LIB.CmdLine (used by the file output), and PBS.LIB.Common (used by PBS.LIB.CmdLine). Full source code with comprehensive usage documentation included. Read the article : PBS Delphi Logger - Thread-safe logging with multiple outputs Free to use and modify |
|||||||
|
These links expire in one hour. Refresh the screen to extend the time.
|
|||||||
|
| |||||||