GLog is a lightweight logging library for Delphi applications. It provides basic yet flexible functionality to log messages to files and/or console, supporting different severity levels.
GLog.pas
– Core unit implementing the logging functionality.LogTest.dpr
– Basic example of how to use the logging system.LogTest2.dpr
– Example demonstrating usage of different log levels (info
,warning
,error
).LogTest3.dpr
– Demonstration of file and console logging.
-
Thread-safe design – compatible with multithreaded environments
-
Multiple log levels: INFO, WARNING, ERROR
-
Log to file and/or console
-
Configurable log output format
-
Enable or disable logging as needed
-
Simple integration into existing Delphi projects
uses
GLog;
begin
WriteInfoLogLn('Application started.');
WriteWarningLogLn('This is a warning.');
WriteErrorLogLn('An error occurred.');
end.
This project uses FastMM5 – a fast replacement memory manager for Delphi. It improves performance and memory debugging capabilities.
Make sure to include FastMM5.pas
in your project if you're building from source.
- FastMM5 memory manager
- No other external dependencies
This project is licensed under the MIT License – feel free to use, modify, and distribute it.