Debug.java :  » App » sliderapp » com » mdigit » define » Android Open Source

Android Open Source » App » sliderapp 
sliderapp » com » mdigit » define » Debug.java
package com.mdigit.define;

import android.util.Log;

public class Debug {
  public static boolean B_DEBUG = true;
  //CHOYS
  public static final String CLASS_TAG      = "[WebClient]";
  
  public static void out(String tag, String msg)
  {
    String tag2;
    
    if (B_DEBUG == false)
      return;
    
    if (tag == null)
      tag2 = "";
    else 
      tag2 = tag;
    //CHOYS
    Log.d(CLASS_TAG, "[" + tag2 + "] " + msg);
  }
  
  public static void out(String tag, int msg)
  {
    String tag2;
    
    if (B_DEBUG == false)
      return;
    
    if (tag == null)
      tag2 = "NULL";
    else
      tag2 = tag;
    //CHOYS
    Log.d(CLASS_TAG, "[" + tag2 + "] " + msg);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.