!This project has been moved to chol!
A simple single-header STB-style C library for logging, inspired by log.c.
#define CLOG_IMPLEMENTATION
#include "clog.h"
int main(void) {
LOG_INFO("Hello, world!");
LOG_WARN("I am a warning");
LOG_ERROR("Something bad just happened!");
LOG_FATAL("Something very bad happened, exiting...");
return 0;
}
Output
Just copy clog.h
into your project and include it, or submodule this repository and
include the header. See the example to see how to use the library.
To compile and run the example, run
$ cc ./examples/log.c -o log
$ ./log
If you find any bugs, please create an issue and report them.