async_mqtt supports Boost.Log style logging. The severity levels are fatal
, error
, warning
, info
, debug
, and trace
.
The easiest way to setup logging is
async_mqtt::setup_log(
async_mqtt::severity_level::info, // you can use any other severity_level
true // if true or omit the argument
// log is colored, otherwise non colored
);
You can setup your custom settings.