Implemented log level handling/switching. Use LOGLEVEL macro for setting level/severity. See jlog::severity in jlog.hpp for more information.

This commit is contained in:
2024-06-18 12:11:41 -04:00
parent a86e70a055
commit 2799c918b8
3 changed files with 40 additions and 19 deletions

View File

@@ -36,6 +36,8 @@ Using jlog is straightforward:
#include <jlog.h>
int main() {
LOGLEVEL(jlog::severity::debug); // <- see jlog::severity for full list of log levels
INFO("This is barely useful information.");
DEBUG("Debugging Information");
VERBOSE("Yadda Yadda Yadda");