better logging with TRACE, DEBUG, and FATAL #160
No reviewers
Labels
No Label
Bug
Cleanup
documentation
Driver
duplicate
Feature
Firmware
glscopeclient
good first issue
Hardware
help wanted
invalid
Linux
performance
question
scopeserver
Windows
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: AllSpice/ThunderScope#160
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev-logger"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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