Skip to content
Snippets Groups Projects
Commit fcb6419f authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[web] Update logog to spdlog docu.

parent c135a72e
No related branches found
No related tags found
No related merge requests found
...@@ -11,25 +11,28 @@ weight = 1034 ...@@ -11,25 +11,28 @@ weight = 1034
## Introduction ## 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 ```cpp
ERR("An error message!") ERR("An error message!");
WARN("A warning message.") WARN("A warning message.");
INFO("An information 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 ```cpp
int foo = 9001; int foo = 42;
int maxfoo = 9000; double boo = 3.14;
if (foo > maxfoo) WARN("Foo is {}! Current value is {:10.2g}.", foo, boo);
WARN("Foo is over %d! Current value is %d.", maxfoo, foo );
``` ```
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 On release builds the default log level is `INFO`, for debug builds it is
`DEBUG`. `DEBUG`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment