mirror of
https://github.com/paweld/simple-logger
synced 2026-01-03 17:03:04 +01:00
|
|
||
|---|---|---|
| .gitignore | ||
| LICENSE | ||
| LPDLogU.pas | ||
| README.md | ||
LPDLogU - Simple, thread-safe logger for FPC/Lazarus.
Logs saved to file, support for log archiving and compression.
File log name is application file name with .log extension.
How to use
-
add
LPDLogUunit tousessection -
add log with:
Logger.AddLog('Some text', ltError); //or with params Logger.AddLog('A: %d; B: %s; C: %s', [23, 'test', 'name'], ltDebug);Log types:
ltInfoltErrorltDebugltWarningltFatalltTraceltSuccessltCriticalltException
or
Logger.AddInfo('Some text'); Logger.AddDebug('Some text'); Logger.AddError('%d %d %d %s %s', [1, 2, 3, 'a', 'b']); //etc.