From 4490b67e09b1c470aeef0080114189e10987dd4d Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Fri, 25 Nov 2022 09:42:18 +0300 Subject: [PATCH] A bit of documentation --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 397a516..2292149 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ ## Usage +Logging is done via appropriate (info|warning|error|debug) log functions. Before calling them it is needed to execute `set_log_output` and pass `FILE*` of your liking (usually `stdout`), all log messages will be printed there unless you `set_log_output` somewhere other place again. + +There are log levels as well. By default all levels are set, but you can override them with `set_log_level` by either specifying one log level (`INFO`, `WARNING`, `ERROR`, `DEBUG`) or chaining them with `|`. + ``` #include "logger.h"