Minimal yet colorful logging lib.
log_info("logging an info message"); log_warn("logging a warn message"); log_debug("logging a debug message"); log_error("logging an error");
Both log_err
and log_warn
append last error (errno
) to message.
clib install thlorenz/log.h
Set the log level via #define LOGLEVEL
in order to control what log messages are printed. The default is 4
.
Setting NDEBUG
will not log debug messages no matter what the log level is.
#define LOG_NOCOLORS 1 #include "log.h" / * log without colors */
MIT
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4