rodbus (C++ API) 1.3.1
|
Provides a static method for configuring logging. More...
#include <rodbus.hpp>
Static Public Member Functions | |
static void | configure (const LoggingConfig &config, std::unique_ptr< Logger > logger) |
Set the callback that will receive all the log messages. More... | |
Provides a static method for configuring logging.
|
static |
Set the callback that will receive all the log messages.
There is only a single globally allocated logger. Calling this method a second time will return an error.
If this method is never called, no logging will be performed.
config | Configuration options for logging |
logger | Logger that will receive each logged message |
ParamException |