setLogListener method

void setLogListener(
  1. MigratoryDataLogListener logListener,
  2. MigratoryDataLogLevel logLevel
)

Attach a listener for handling log messages outputted by the library.

It is advisable to configure this listener first to log as much as possible. If no log listener is set then, by default the client will log to the console.

\param logListener an implementation of the \link MigratoryDataLogListener \endlink interface \param logLevel a particular \link MigratoryDataLogLevel \endlink configured as the logging threshold

Implementation

void setLogListener(
    MigratoryDataLogListener logListener, MigratoryDataLogLevel logLevel) {
  clientImpl.setLogListener(logListener, logLevel);
}