IAP GITLAB

Update Logging Guidelines authored by Ralf Ulrich's avatar Ralf Ulrich
......@@ -77,3 +77,23 @@ guidelines determine how to choose the appropriate log level for a given message
`CORSIKA_LOG_TRACE("message")` or `CORSIKA_LOGGER_TRACE(logger, "message")`.
These are removed during `Release` builds.
## Change output log level
The level output can be dynamically changed between different thresholds by using:
```
logger->set_level(logging::level::critical);
```
with the obvious options of
```
logging::level::critical
logging::level::error
logging::level::warning
logging::level::info
logging::level::debug
logging::level::trace
```
Note, the when you used the macros, they are automatically removed for TRACE level in a build that has not set `-DDEBUG`, thus in Release build this won't be directly accessible. And you have to re-compile the entire framework.