Skip to content

gecko-71/GLog

Repository files navigation

GLog – Simple Logging System for Delphi

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.

Project Structure

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

Features

  • 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

Quick Start

uses
  GLog;
begin
  WriteInfoLogLn('Application started.');
  WriteWarningLogLn('This is a warning.');
  WriteErrorLogLn('An error occurred.');
end.

Memory Management

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.

Requirements

  • FastMM5 memory manager
  • No other external dependencies

License

This project is licensed under the MIT License – feel free to use, modify, and distribute it.

About

GLog – Simple Logging System for Delphi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages