How do I get the logfile from an Android device?

I would like to pull the log file from a device to my PC. How can I do that?


Logcollector is a good option but you need to install it first.

When I want to get the logfile to send by mail, I usually do the following: