Log File of errors in Android/iOS ?¿ ?

Hello, 

I’m working on an application that works correctly in the simulator, 

however I can not  get to the stages of the game in android. 

Has anyone done or know if you can create a log file recording errors?, Something like console simulator, but a file in android or iOS. 

Greetings.

Here’s the link describing simple debugging on iOS and Android.

Here’s the link describing simple debugging on iOS and Android.