Can u give me example how to send log to server using kotlin?

Hi kotlin community , so i’ve been working on project and i want to send my log to backend server using kotlin , what is the best way to achieve this ? Please give me example or reference to this problem ?