#include #include #include "bookmouse.hpp" void setupLogging() { spdlog::cfg::load_env_levels(); spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [thread %t] %v"); } int main(int argc, char* argv[]) { static_cast(argc); static_cast(argv); setupLogging(); bookmouse::Bookmouse bookmouse{}; return bookmouse.run(); } void load_levels_example() { // Set the log level to "info" and mylogger to "trace": // SPDLOG_LEVEL=info,mylogger=trace && ./example spdlog::cfg::load_env_levels(); // or from command line: // ./example SPDLOG_LEVEL=info,mylogger=trace // #include "spdlog/cfg/argv.h" // for loading levels from argv // spdlog::cfg::load_argv_levels(args, argv); }