Browse Source

updated example to new api

master
Arwed Mett 3 years ago
parent
commit
89ce441621
Signed by: Pfeifenjoy GPG Key ID: 86943827297DA9FC
  1. 8
      README.md
  2. 8
      example/main.c

8
README.md

@ -9,10 +9,10 @@ E.g:
#include "logging/logging.h"
int main(const int argc, const char **argv) {
debug(0, "42"); // -> [DEBUG] 42
error("42"); // -> [ERROR] 42
info("42"); // -> [INFO] 42
warn("42"); // -> [WARN] 42
println_debug("42"); // -> [DEBUG] 42
println_error("42"); // -> [ERROR] 42
println_info("42"); // -> [INFO] 42
println_warn("42"); // -> [WARN] 42
}
```

8
example/main.c

@ -1,8 +1,8 @@
#include "logging/logging.h"
int main(const int argc, const char **argv) {
debug(0, "42"); // -> [DEBUG] 42
error("42"); // -> [ERROR] 42
info("42"); // -> [INFO] 42
warn("42"); // -> [WARN] 42
println_debug("42"); // -> [DEBUG] 42
println_error("42"); // -> [ERROR] 42
println_info("42"); // -> [INFO] 42
println_warn("42"); // -> [WARN] 42
}
Loading…
Cancel
Save