From fcb6419f7dfad64de2b42aafe95b169240b9b124 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Wed, 25 Mar 2020 19:15:28 +0100 Subject: [PATCH] [web] Update logog to spdlog docu. --- .../advanced/log-and-debug-output.pandoc | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/web/content/docs/devguide/advanced/log-and-debug-output.pandoc b/web/content/docs/devguide/advanced/log-and-debug-output.pandoc index 8bf61dda3df..427e2013f01 100644 --- a/web/content/docs/devguide/advanced/log-and-debug-output.pandoc +++ b/web/content/docs/devguide/advanced/log-and-debug-output.pandoc @@ -11,25 +11,28 @@ weight = 1034 ## Introduction -For application output we use [Logog](http://johnwbyrd.github.com/logog) which is already integrated in OGS. Logog provides several verbosity levels which can be used with simple macro calls: +For application output we use [spdlog](https://github.com/gabime/spdlog) which +is already integrated in OGS. Spdlog provides several verbosity levels which can +be used with simple calls: ```cpp -ERR("An error message!") -WARN("A warning message.") -INFO("An information message...") +ERR("An error message!"); +WARN("A warning message."); +INFO("An information message..."); +DBUG("A debug message."); ``` -As arguments you can use the same functionality as in [sprintf](http://www.cplusplus.com/reference/cstdio/sprintf/): +As arguments you can use the same functionality as in [fmt](https://fmt.dev)---a +modern formatting library: ```cpp -int foo = 9001; -int maxfoo = 9000; -if (foo > maxfoo) - WARN("Foo is over %d! Current value is %d.", maxfoo, foo ); +int foo = 42; +double boo = 3.14; +WARN("Foo is {}! Current value is {:10.2g}.", foo, boo); ``` -For more information see the [Logog documentation](http://johnwbyrd.github.com/logog/quickstart.html). - +For more information see the [spdlog +wiki](https://github.com/gabime/spdlog/wiki). On release builds the default log level is `INFO`, for debug builds it is `DEBUG`. -- GitLab