]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc logging: add a simple example
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 2 Nov 2021 12:30:10 +0000 (13:30 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Mon, 8 Nov 2021 15:07:51 +0000 (16:07 +0100)
The brackets notation and string quotation are not obvious to everyone.

doc/config-logging-monitoring.rst

index fe0d183ce23ba2d6006168333e64a674a3bc571d..c4a84c89df057a159c4e8e42b81a17a4f93da1bc 100644 (file)
@@ -12,6 +12,10 @@ Knot Resolver supports 6 logging levels - ``crit``, ``err``, ``warning``,
 in ``syslog.h``. It is possible change logging level using
 :func:`log_level` function.
 
+.. code-block:: lua
+
+  log_level('debug') -- too verbose for normal usage
+
 Logging level ``notice`` is set after start by default,
 so logs from Knot Resolver should contain only couple lines a day.
 For debugging purposes it is possible to use the very verbose ``debug`` level,