Developers spend the majority of their time debugging and troubleshooting by analyzing logs. And there are numerous logging frameworks to choose from. RAD Studio developers have several options as well. TMS Logging is one of the best logging frameworks.
Table of Contents
What is TMS Logging?
This is a compact cross-platform logging framework offering informative log output to a flexible number of targets with a minimum amount of code.
What features does TMS Logging have?
- Log to one or more output handlers such as the Console, HTML, Text file, CSV file, TCP/IP, Windows Event Log
- Heavily RTTI based for comprehensive type and class logging with simple log statements
- Cross-platform support
- Multi-thread enabled & thread-safe
- Value validation to control logging
- Helper functions
- Separate TCP/IP Client included viewing logger outputs remotely
- Automatic exception logging
- Interfaces to myCloudData.net & Exceptionless cloud logging
- and more
If you need a real solid logging framework, this can be good to go. Because it offers more than you need.
Code Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
procedure TForm1.FormCreate(Sender: TObject); begin TMSLogger.Outputs := [loTimeStamp, loLogLevel, loValue]; TMSLogger.OutputFormats.TimeStampFormat := 'The time is {%"hh:nn:ss"dt}, '; TMSLogger.OutputFormats.LogLevelFormat := 'the loglevel is {%s}, '; TMSLogger.OutputFormats.ValueFormat := '{%s}'; end; procedure TForm1.Button1Click(Sender: TObject); var s: string; fmt: string; begin s := 'Hello World !'; fmt := 'The value is {%s}'; TMSLogger.Info(s); TMSLogger.Error(s); TMSLogger.WarningFormat(fmt, [s]); TMSLogger.Trace(s); TMSLogger.Debug(s); end; |
How to get TMS Logging?
Interested in creating a Cross-Platform Logging Framework For Windows And Mobile projects? Try Embarcadero’s Cross-Platform App Builder to help your organization build TMS logging and maximize its potential.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition