This is useful for sending logs to an app developer so they can work out reasons for crashes etc.
Make the Developer Options menu available by tapping 7 times on the Build number in Settings->About Phone.
Enable Developer Options in Settings->Developer options by making Off -> On.
Enable USB Debugging by selecting it in Settings->Developer options, and choosing OK. Now the Take Bug Report option is available and enabled.
Select Take bug report in Settings->Developer optionsÂ
Click Report in the next dialog.
Wait a minute or three.
Find a notification saying Bug report captured and click on it (twice if on lock screen).
Read and digest the warning message, then click OK.
Choose your desired method of sending report to developer - Gmail works for me.
If sending email, modify the To field, the Subject, and add any other useful information to the body of the email. Also check that there is a txt file attachment there - if missing then repeat from step 4 above. Then click Send.