Always define FAIR_MIN_SEVERITY

This commit is contained in:
Alexey Rybalchenko
2020-07-17 11:09:23 +02:00
parent b30cacab12
commit 4b3e6d3837
4 changed files with 46 additions and 74 deletions

View File

@@ -106,10 +106,10 @@ Logger will log the chosen severity and all above it (except "nolog", which deac
The minimum severity level can be configured at compile time via definition of `FAIR_MIN_SEVERITY`:
```C++
#define FAIR_MIN_SEVERITY warn // only allow severities >= warn
#include <fairlogger/Logger.h>
```
cmake -DFAIR_MIN_SEVERITY=warn ..
```
The above would only log severities equal to or above `warn`.
When `FAIR_MIN_SEVERITY` is not provided all severities are enabled.