-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
30 lines (21 loc) · 701 Bytes
/
README
File metadata and controls
30 lines (21 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CLOG
A simple logging library for C
I. Installation
make
sudo make install
configuration is done in the Makefile
* C compiler is set in the `CC` variable
* Installation directory is set with the `PREFIX` variable
II. Usage
The library provides the following log levels:
DEBUG
INFO
WARN
ERROR
FATAL
There are constants available for these log levels with the naming CLOG_*
The clog_init() function should be called on programm start. It sets the
minimum required log level to write and the stream to which the log should be
written. The programm has to open and close the stream provided.
To write a log you can either call the clog_log() function or use the
clog_debug(),... wrappers.