title: How to Store Log Data in Json format in android?
body: <p>I am logging events in the android application. </p>
  
  <p>Now I need to store the <code>Log</code> data that is generated by the application in <strong>JSON</strong> format.How can I do this... any suggestion for this?</p>
  
  <p>this is the code for logging various events of the Android application using <code>AppEventLogger</code> class</p>
  
  <pre><code>public  class AppEventLogger {
  
  private static final String TAG = AppEventsLogger.class.getCanonicalName();
  
  
  public void Loginlog(Long id,  boolean result, int failedattempts, int attempts,long eventTime, long mLastInteractionTime) {
      final long eventTime = System.currentTimeMillis();
  
      logLogin(
          id,
          result,
          failedattempts,
          attempts,
          eventTime,
          mLastInteractionTime);
  
  }
  
  
  public void Logoutlog(long eventTime ,boolean isLoggedOut,){
      final long eventTime = System.currentTimeMillis();
  
      logLogout(
          eventTime,
          isLoggedOut);
  }
  </code></pre>