Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 903 Bytes

logging.adoc

File metadata and controls

27 lines (20 loc) · 903 Bytes

logging

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.