better logging with TRACE, DEBUG, and FATAL #160

Merged
AlexVdberg merged 2 commits from dev-logger into master 2021-03-15 16:37:01 +00:00
AlexVdberg commented 2021-03-15 16:36:12 +00:00 (Migrated from github.com)

Added 3 new logging levels: TRACE, DEBUG, and FATAL
Log level can be changed in logger.hpp:42 by just changing the log severity to the desired level. doing so will not print anything with a lower severity level. IE setting it to "info" will not print any DEBUG or TRACE logs but will print INFO, ERROR, WARN and FATAL logs
Also moved a lot of things from INFO to DEBUG

printing an array can be done by doing string concatenation. for an example of it, look at the PrintPacket() function.
Also added a helper function to convert a integer to a hex string: convert_int() in logger.cpp

Added 3 new logging levels: TRACE, DEBUG, and FATAL Log level can be changed in logger.hpp:42 by just changing the log severity to the desired level. doing so will not print anything with a lower severity level. IE setting it to "info" will not print any DEBUG or TRACE logs but will print INFO, ERROR, WARN and FATAL logs Also moved a lot of things from INFO to DEBUG printing an array can be done by doing string concatenation. for an example of it, look at the PrintPacket() function. Also added a helper function to convert a integer to a hex string: convert_int() in logger.cpp
Sign in to join this conversation.
No description provided.