Android Open Source - android-home-auto My Log






From Project

Back to project page android-home-auto.

License

The source code is released under:

Apache License

If you think the Android project android-home-auto listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package app.davols.home.data;
/*from   w ww  . j  a  v  a2s. c  om*/
import android.util.Log;

public class MyLog {
  private static final boolean DEBUG=true;
  public static void d(String TAG,String MSG) {
    if(DEBUG) {
      Log.d(TAG,MSG);
    }
  }
  public static void v(String TAG,String MSG) {
    if(DEBUG) {
      Log.v(TAG,MSG);
    }
  }
  public static void e(String TAG,String MSG) {
    if(DEBUG) {
      Log.e(TAG,MSG);
    }
  }
  public static void i(String TAG,String MSG) {
    if(DEBUG) {
      Log.i(TAG,MSG);
    }
  }
  public static void w(String TAG,String MSG) {
    if(DEBUG) {
      Log.w(TAG,MSG);
    }
  }
  public static void e(String TAG, String MSG, Exception e) {
    if(DEBUG) {
      Log.e(TAG,MSG,e);
    }
  }
  public static void e(String TAG, String MSG, Error e) {
    if(DEBUG) {
      Log.e(TAG,MSG,e);
    }
  }
  public static void w(String TAG, String MSG, Exception e) {
    if(DEBUG) {
      Log.w(TAG,MSG,e);
    }
  }
}




Java Source Code List

app.davols.home.MainActivity.java
app.davols.home.data.DataManager.java
app.davols.home.data.HomeUnit.java
app.davols.home.data.MyLog.java