zlog is a reliable, efficient, thread safe, flexible, pure C logging library. It was written because there were no good C logging libraries along the lines of Logback for Java or log4cxx for C++. printf can work, but can not be easily redirected or reformatted, and syslog is slow and designed for system use. It provides a syslog model, log format customization, multiple output, safe run-time reconfiguration, high performance, user-defined log levels, safe log rotation, a log4j-style key-value map, in-built debugging, and no external dependencies.
| Tags | C Logging Library log4c log4j |
|---|---|
| Licenses | LGPL |
| Operating Systems | POSIX |
| Implementation | C |
| Translations | Chinese |
Recent releases


Release Notes: This is a bugfix release. The English manual has been revised by a generous anonymous user.


Release Notes: The param list is now automatically validated when using GCC. A small bug was fixed. Comments are now allowed inside the configure line.


Release Notes: Bugfixes, speed-ups, and reduced memory usage. Caches every time string for rarely called strftime. Releases a thread's message buf at pthread_exit(). Fixes the makefile for zlog-chk-conf on some OSs.


Release Notes: This is a bugfix version for 1.2. strftime is the slow part of logging on POSIX systems; a search is in progress for another method.


Release Notes: Pipeline support; now zlog can output logs through programs like cronolog. Full rotation support. Other code compatibility details and bugfixes.