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 b25c3a8 commit 2aa258c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ There is an example how use slog. You can also see, compile and run example.c so
slog(0, "[LIVE] Test message with level 0");
```
First argument is log level and second is message to print and/or save. Slog ands strings automatically with \n.

# Output
Here is example output of slog
```
2015:04:02:56 - [LIVE] Test message with level 0
2015:04:02:56 - [LIVE] Test message with level 1
2015:04:02:56 - [DEBUG] Test message with level 2
2015:04:02:56 - [DEBUG] Test message with level 3
2015:04:02:56 - [LIVE] Test message with char argument: test string
2015:04:02:56 - [LIVE] Test message with int argument: 69
```

0 comments on commit 2aa258c

Please sign in to comment.