Android Open Source - Ocypode Logcat






From Project

Back to project page Ocypode.

License

The source code is released under:

MIT License

If you think the Android project Ocypode 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 com.ocypode.utility;
/* w ww  .  j a  va2s.  c o m*/
/**
 * @author Jairo Barros Junior (jairobjunior@gmail.com)
 * @since May 9, 2013
 */
public class Logcat {
  
  public static boolean LOG_ENABLED = true;
  private static String TAG = "Logcat";

  public static void d(String msg) {
    if (LOG_ENABLED)
      android.util.Log.d(TAG, msg);
  }

  public static void d(String tag, String msg) {
    if (LOG_ENABLED)
      android.util.Log.d(tag, msg);
  }

  public static void e(String msg) {
    if (LOG_ENABLED)
      android.util.Log.e(TAG, msg);
  }

  public static void e(String tag, String msg) {
    if (LOG_ENABLED)
      android.util.Log.e(tag, msg);
  }

  public static void e(String msg, Throwable tr) {
    if (LOG_ENABLED)
      android.util.Log.e(TAG, msg, tr);
  }

  public static void e(String tag, String msg, Throwable tr) {
    if (LOG_ENABLED)
      android.util.Log.e(tag, msg, tr);
  }

  public static void i(String msg) {
    if (LOG_ENABLED)
      android.util.Log.i(TAG, msg);
  }

  public static void i(String tag, String msg) {
    if (LOG_ENABLED)
      android.util.Log.i(tag, msg);
  }

  public static void v(String msg) {
    if (LOG_ENABLED)
      android.util.Log.v(TAG, msg);
  }

  public static void v(String tag, String msg) {
    if (LOG_ENABLED)
      android.util.Log.v(tag, msg);
  }

  public static void w(String msg) {
    if (LOG_ENABLED)
      android.util.Log.w(TAG, msg);
  }

  public static void w(String tag, String msg) {
    if (LOG_ENABLED)
      android.util.Log.w(tag, msg);
  }
  
  public static void setTag(String tag) {
    TAG = tag;
  }
}




Java Source Code List

com.ocypode.BuildConfig.java
com.ocypode.BuildConfig.java
com.ocypode.activity.IResultCallbackActivity.java
com.ocypode.activity.robo.AbstractRoboActivity.java
com.ocypode.activity.robo.AbstractRoboFragmentActivity.java
com.ocypode.activity.robo.fragment.AbstractRoboFragment.java
com.ocypode.bluetooth.BluetoothHelper.java
com.ocypode.component.Typefaced.java
com.ocypode.component.animation.AnimationCallbackListener.java
com.ocypode.component.delegate.IStartActivityDelegate.java
com.ocypode.component.delegate.StartActivityDelegate.java
com.ocypode.component.delegate.adaptor.IStartActivityAdaptor.java
com.ocypode.component.delegate.adaptor.StartActivityAdaptor.java
com.ocypode.component.delegate.adaptor.StartFragmentAdaptor.java
com.ocypode.component.view.button.TypefacedButton.java
com.ocypode.component.view.dialog.AlertDialogBuilder.java
com.ocypode.component.view.dialog.ProgressDialogBuilder.java
com.ocypode.component.view.dialog.titledescription.TitleDescriptionArrayAdapter.java
com.ocypode.component.view.dialog.titledescription.TitleDescriptionModel.java
com.ocypode.component.view.edittext.TypefacedEditText.java
com.ocypode.component.view.imageview.CircleImageView.java
com.ocypode.component.view.listview.LockableListView.java
com.ocypode.component.view.scrollview.LockableScrollView.java
com.ocypode.component.view.textview.AutoResizeTextView.java
com.ocypode.component.view.textview.TypefacedTextView.java
com.ocypode.repository.AbstractRepository.java
com.ocypode.utility.ICallback.java
com.ocypode.utility.Logcat.java
com.ocypode.utility.Utility.java
com.ocypode.utility.bitmap.BitmapUtil.java
com.ocypode.utility.formatter.CurrencyFormatter.java
com.ocypode.utility.formatter.DateFormatter.java
com.ocypode.utility.formatter.NumberFormatter.java
com.ocypode.utility.validation.StringValidation.java
com.ocypode.widgets.list.OCListView.java