title: How to save logs to file?
body: <p>Currently, I'm developing an app for the company I work for, a lot of my co-workers use my app, the thing is, some times crashes/errors occur and I have no way of checking the log messages so I'll like to save the log messages in a text file so when an error happens I can check the log file and get a better idea of what is causing the problem. </p>
  
  <p>I don't need the log to be sent to me through e-mail, it is good enough to have the file locally on the phone so I can plug it in my pc and extract the log file.</p>
  
  <p>Currently, this is how I manage my logs:</p>
  
  <pre><code>
  try {
          //stuff...
      }
  catch (Exception ex) {
          Log.e("Error", ex.getMessage());
      }
  
  </code></pre>
  
  <p>The   <code>Log.e("Error", ex.getMessage());</code>  is what I would like to save.</p>