Logging via email - android studio

Hi!
I am having trouble for a long time.
I have a project and when a client is using it and the app crashes, I would like to recieve an email with the log (error).
Does anybody know how to do it?