td_set_log_message_callback method

int td_set_log_message_callback(
  1. int max_verbosity_level,
  2. Pointer<NativeFunction<td_log_message_callback_ptr>> callback
)

Sets the callback that will be called when a message is added to the internal TDLib log. None of the TDLib methods can be called from the callback. By default the callback is not set.

\paramin max_verbosity_level Maximum verbosity level of messages for which the callback will be called. \paramin callback Callback that will be called when a message is added to the internal TDLib log. Pass nullptr to remove the callback.

Implementation

int td_set_log_message_callback(
  int max_verbosity_level,
  ffi.Pointer<ffi.NativeFunction<td_log_message_callback_ptr>> callback,
) {
  return _td_set_log_message_callback(
    max_verbosity_level,
    callback,
  );
}