#include <qrinvoice/logging.hpp>
// ...
// log file gets immediately created
qrinvoice::logging::set_log_file("logfile.txt");
// if you want the log file to only be created when needed, us the "lazy logger"
qrinvoice::logging::set_lazy_log_file("logfile.txt");
// set the desired minimum log level
// valid values: "trace", "debug", "info", "warning", "error", "critical", "off"
qrinvoice::logging::set_log_level("warning");