Work in progress...
dilog is a tiny, minimalistic logging utility designed for simplicity, security, and modern C standards. It's lightweight, memory-safe, thread-safe, and highly configurable for all your logging needs. Whether you're building a small utility or a large application, dilog is here to make logging easy and efficient.
Why this project: Because I personally needed a really simple logging system tailored to my needs and I didn’t want to embed a full-blown nuclear submarine into my projects just to print "Hello, world!".
To use dilog, simply include the dilog.h header file in your project. No external dependencies are required.
#include "../dilog.h"
int main() {
dilog_init();
dilog("Hello, world!");
return 0;
}(more doc incoming)
- 🗂️ Topic System: Log with flexible "profiles" (topics) that allow full customization — format, output options, and more.
- 🏷️ Typed Logs: Easily log messages as
error,info,warn, or any custom-defined type. - 💾 [WIP] Log to a File: Send your logs to a file for persistent tracking.
- 🌐 Cross-Platform: Works seamlessly on Linux, macOS, and Windows, no dependencies needed.
- 🎨 Hex Color Support: Customize your logs with full hex color codes for better readability and style.