@@ -0,0 +1,994 @@
+package com.mignot.kumar.logger;%0A%0Aimport android.support.annotation.NonNull;%0Aimport com.google.firebase.database.DatabaseReference;%0Aimport com.mignot.kumar.models.LocationEntry;%0A%0A/**%0A * A LocationLogger implementation that logs LocationEntry%0A * entries to a FireBase Database%0A */%0Apublic class FireBaseLocationLogger implements LocationLogger %7B%0A  private static final String LOG_ROOT = %22location-logs%22;%0A  private static FireBaseLocationLogger _instance = null;%0A  private static DatabaseReference dr = null;%0A%0A  public static FireBaseLocationLogger getInstance(DatabaseReference dbRef) %7B%0A    if (dr == null) dr = dbRef;%0A    if (_instance == null) _instance = new FireBaseLocationLogger();%0A    return _instance;%0A  %7D%0A%0A  private FireBaseLocationLogger() %7B%7D%0A%0A  @Override%0A  public void log(@NonNull LocationEntry entry) %7B%0A    // get a new key from FireBase for this entry%0A    String newId = dr.push().getKey();%0A    // and log it%0A    dr.child(LOG_ROOT)%0A      .child(newId)%0A      .setValue(entry);%0A  %7D%0A%7D%0A

implement a firebase logger that logs LocationEntry objects to firebase