Skip to content

paweld/simple-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 LPDLogU unit to uses section

  • 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:

    • ltInfo
    • ltError
    • ltDebug
    • ltWarning
    • ltFatal
    • ltTrace
    • ltSuccess
    • ltCritical
    • ltException

    or

    Logger.AddInfo('Some text');
    Logger.AddDebug('Some text');
    Logger.AddError('%d %d %d %s %s', [1, 2, 3, 'a', 'b']);
    //etc.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages