For debugging it can be very useful to employ a logging framework. We will use
spdlog, a lightweight and fast C++ logging library.
• Make yourself familiar with spdlog4.
• What are the differences between the log functions and log macros? Which
did you choose for your code and why?
• Include the latest version of spdlog into your CMake project. Do not rely on
system wide installed libraries and do not create extra installation steps for
the user to perform manually.
• Think about a reasonable structure for the loggers and use log-instructions
instead of std::cout in your code.
• The user should be able to select the log level either via any form of input or
through CMake. Having to edit any source file to change the log level is not
acceptable.
For debugging it can be very useful to employ a logging framework. We will use spdlog, a lightweight and fast C++ logging library.
• Make yourself familiar with spdlog4. • What are the differences between the log functions and log macros? Which did you choose for your code and why? • Include the latest version of spdlog into your CMake project. Do not rely on system wide installed libraries and do not create extra installation steps for the user to perform manually. • Think about a reasonable structure for the loggers and use log-instructions instead of std::cout in your code. • The user should be able to select the log level either via any form of input or through CMake. Having to edit any source file to change the log level is not acceptable.