td_set_log_message_callback method
- int max_verbosity_level,
- 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 The 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
void td_set_log_message_callback(
int max_verbosity_level,
td_log_message_callback_ptr callback,
) {
return _td_set_log_message_callback(
max_verbosity_level,
callback,
);
}