Log and Debug Output

Introduction

For application output we use spdlog which is already integrated in OGS. Spdlog provides several verbosity levels which can be used with simple calls:

As arguments you can use the same functionality as in fmt—a modern formatting library:

For more information see the spdlog wiki.

On release builds the default log level is INFO, for debug builds it is DEBUG. The log level can be adjusted on the command line with -l <LOG_LEVEL> flag.


This article was written by Lars Bilke. If you are missing something or you find an error please let us know. Generated with Hugo 0.64.1. Last revision: March 25, 2020
Commit: [web] Update logog to spdlog docu. fcb6419f7  | Edit this page on