td_set_log_file_path method

int td_set_log_file_path(
  1. Pointer<Int8> file_path
)

Sets the path to the file where the internal TDLib log will be written. By default TDLib writes logs to stderr or an OS specific log. Use this method to write the log to a file instead.

\deprecated Use synchronous setLogStream request instead. \paramin file_path Null-terminated path to a file where the internal TDLib log will be written. Use an empty path to switch back to the default logging behaviour. \return True 1 on success, or 0 otherwise, i.e. if the file can't be opened for writing.

Implementation

int td_set_log_file_path(
  ffi.Pointer<ffi.Int8> file_path,
) {
  return _td_set_log_file_path(
    file_path,
  );
}