8000 GitHub - bharatvaj/libclog: A simple yet fast and bare minimal Logging library for C
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bharatvaj/libclog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clog
====
A simple yet fast and bare minimal thread-safe logging library for C

Installation
------------
On Linux/Unix systems including macOS, libraries can be built using the following commands

make
sudo make install

Usage
-----

#include <clog.h>

clog_enable();        // enable clog

CLOG_I("%s", "test"); // log info
CLOG_W("%s", "test"); // log warning
CLOG_E("%s", "test"); // log error
CLOG_V("%s", "test"); // log verbose messages

Output
------
clog by default prints to stderr but can to any given `FILE *` opened write or append mode

#include <stdio.h>
...
FILE *fp = fopen("log.txt", "w");
clog_out(fp);

About

A simple yet fast and bare minimal Logging library for C

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0