Draft: Resolve "Add Logger"
- Replace
debout
calls withspdlog
calls. - Remove debug outputs from some classes.
Logging levels:
Allows different levels of logging messages (error, warning, info, debug), depending on the build type, e.g., Debug enabled, different levels will be printed to the console.
Level | Debug | Release |
---|---|---|
Debug | ||
Info | ||
Warning | ||
Error |
Current output patterns:
There are a lot of options to customize the output pattern (spdlog wiki). If anything important should be added here, please comment.
Release:
[info] Starting PeTrack Version 0.8 (BUILD Nov 10 2020 10:32:49, /home/tobias/development/petrack/petrack/cmake-build-release/petrack)
[info] open /home/tobias/development/petrack/petrack-issues/multiple-heads/20200616_13024118_080_l020_g2_rf_h-_cam8_multipleHeads.mp4 (34 frames; 50 fps; 1920 x 1080 pixel)
Debug:
[main.cpp:132:main][info] Starting PeTrack Version 0.8 (BUILD Nov 10 2020 10:34:05, /home/tobias/development/petrack/petrack/cmake-build-debug/petrack)
[petrack.cpp:865:openSequence][info] open /home/tobias/development/petrack/petrack-issues/multiple-heads/20200616_13024118_080_l020_g2_rf_h-_cam8_multipleHeads.mp4 (34 frames; 50 fps; 1920 x 1080 pixel)
Wiki needs to be extended to explain usage of the logger calls.
Closes #82 (closed)
Edited by Schrödter, Tobias