Tabnine Logo
LogUtil
Code IndexAdd Tabnine to your IDE (free)

How to use
LogUtil
in
me.fangx.common.util.log

Best Java code snippets using me.fangx.common.util.log.LogUtil (Showing top 14 results out of 315)

origin: fangx/ZhiHuMVP

public static void unRegisterNetworkStateReceiver(Context mContext) {
  if (mBroadcastReceiver != null) {
    try {
      mContext.getApplicationContext().unregisterReceiver(mBroadcastReceiver);
    } catch (Exception e) {
      LogUtil.d(TAG, e.getMessage());
    }
  }
}
origin: fangx/ZhiHuMVP

public static void d(String message, Object... args) {
  Logger.t(getClassName()).d(message, args);
}
origin: fangx/ZhiHuMVP

@Override
public void onReceive(Context context, Intent intent) {
  mBroadcastReceiver = NetStateReceiver.this;
  if (intent.getAction().equalsIgnoreCase(ANDROID_NET_CHANGE_ACTION) || intent.getAction().equalsIgnoreCase(CUSTOM_ANDROID_NET_CHANGE_ACTION)) {
    if (!NetUtils.isNetworkAvailable(context)) {
      LogUtil.i(TAG, "<--- network disconnected --->");
      isNetAvailable = false;
    } else {
      LogUtil.i(TAG, "<--- network connected --->");
      isNetAvailable = true;
      mNetType = NetUtils.getAPNType(context);
    }
    notifyObserver();
  }
}
origin: fangx/ZhiHuMVP

  closeDrawer();
} else {
  LogUtil.e("HomeActivity", "Error in creating fragment");
origin: fangx/ZhiHuMVP

public static void v(String message, Object... args) {
  Logger.t(getClassName()).v(message, args);
}
origin: fangx/ZhiHuMVP

@Override
public void onCreate() {
  super.onCreate();
  Fresco.initialize(this.getApplicationContext());
  /**
   * 如果存在SD卡则将缓存写入SD卡,否则写入手机内存
   */
  try {
    if (getApplicationContext().getExternalCacheDir() != null && ExistSDCard()) {
      cacheDir = getApplicationContext().getExternalCacheDir().toString();
      LogUtil.d("sd卡", cacheDir);
    } else {
      cacheDir = getApplicationContext().getCacheDir().toString();
    }
  } catch (Exception e) {
    cacheDir = getApplicationContext().getCacheDir().toString();
  }
}
origin: fangx/ZhiHuMVP

public static void w(String message, Object... args) {
  Logger.t(getClassName()).w(message, args);
}
origin: fangx/ZhiHuMVP

public static void json(String json) {
  Logger.t(getClassName()).json(json);
}
origin: fangx/ZhiHuMVP

public static void xml(String xml) {
  Logger.t(getClassName()).xml(xml);
}
origin: fangx/ZhiHuMVP

public static void e(String message, Object... args) {
  Logger.t(getClassName()).e(message, args);
}
origin: fangx/ZhiHuMVP

public static void e(Throwable throwable, String message, Object... args) {
  Logger.t(getClassName()).e(throwable, message, args);
}
origin: fangx/ZhiHuMVP

public static void i(String message, Object... args) {
  Logger.t(getClassName()).i(message, args);
}
origin: fangx/ZhiHuMVP

public static void wtf(String message, Object... args) {
  Logger.t(getClassName()).wtf(message, args);
}
origin: fangx/ZhiHuMVP

      break;
  Logger.t(getClassName()).d(msg + "}");
} else if (object instanceof Collection) {
  Collection collection = (Collection) object;
  Logger.t(getClassName()).d(msg + "\n]");
} else if (object instanceof Map) {
  String msg = simpleName + " {\n";
        SystemUtil.objectToString(value));
  Logger.t(getClassName()).d(msg + "}");
} else {
  Logger.t(getClassName()).d(SystemUtil.objectToString(object));
Logger.t(getClassName()).d(SystemUtil.objectToString(object));
me.fangx.common.util.logLogUtil

Javadoc

Created by fangxiao on 15/12/18.

Most used methods

  • d
  • e
  • getClassName
  • i

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now