Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

LordOfTrident/clog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

!This project has been moved to chol!

clog

License Issues GitHub pull requests


A simple single-header STB-style C library for logging, inspired by log.c.

Table of contents

Simple example

#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

Quickstart

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

Bugs

If you find any bugs, please create an issue and report them.

About

A logging library for C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages