Library for logging on files, console, memory, email, rest, event log, Syslog, slack, telegram, Redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi Firemonkey (Windows/Linux/OSX/IOS/Android).
Quick Logger is asynchronous. All logs are sent to a queue and don’t compromise your application flow. You can define many providers to sent every log entry and decide what level accepts everyone.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
program {$APPTYPE CONSOLE} uses Quick.Logger: Quick.Logger.Provider.Files; Quick.Logger.Provider.Console; begin //Add Log File and console providers Logger.Providers.Add(GlobalLogFileProvider); Logger.Providers.Add(GlobalLogConsoleProvider); //Configure provider options with GlobalLogFileProvider do begin FileName := '.Logger.log'; DailyRotate := True; MaxFileSizeInMB := 20; LogLevel := LOG_ALL; Enabled := True; end; with GlobalLogConsoleProvider do begin LogLevel := LOG_DEBUG; ShowEventColors := True; Enabled := True; end; Log('Test entry',etInfo); Log('Test number: %d',[1],etWarning); end. |
QuickLogger manages Logger and Providers automatically. Logger and providers have a global class, auto-created and released on close your app. You only need to add wanted providers to your uses clause.
There are a range of eventtypes you can define in your logs: etHeader, etInfo, etSuccess, etWarning, etError, etCritical, etException, etDebug, etTrace, etCustom1, etCustom2.
Every logger provider can be configured to listen for one or more of these event types and limit the number of received eventtypes received for a range of eventtypes per Day, hour, minute, or second to avoid performance problems or be spammed.
Be sure to check out all the features and examples of the QuickLogger here!
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition