Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed Apr 2, 2015
1 parent 89c5efc commit 30c13e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# slog Logging Library
Advanced logging library for C/C++ which parses log level from config file and prints log if log level from config is equal or higher than level argument while printing with slog() function.

# Usage
If you want to use slog, you need just two files, slog.c and slog.h
You must include slog.h header file in your code and add slog in Makefile or link it manual.
There is Makefile example in this repository and you can see it and modify.

# Simple API
At first you must initialise slog
```
Expand All @@ -23,7 +28,7 @@ If 1 is given, logs will be saved in file, but it wont if argument is 2.

Third argument is maximum of log levels.

# Usage
# Print and log something
There is an example how use slog. You can also see, compile and run example.c source file where is full functional examples of slog.
```
slog(0, "[LIVE] Test message with level 0");
Expand Down

0 comments on commit 30c13e3

Please sign in to comment.