Android Open Source - WebImageView Log Utils






From Project

Back to project page WebImageView.

License

The source code is released under:

MIT License

If you think the Android project WebImageView 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.rsv.utils;
//from   w ww .  j  av a2  s.  c o  m
import android.util.Log;

/**
 * Just a log wrapper
 * 
 */
public class LogUtils {
  public static void w(Object obj, String msg) {
    w(getTag(obj), msg);
  }

  public static void i(Object obj, String msg) {
    i(getTag(obj), msg);
  }

  public static void v(Object obj, String msg) {
    v(getTag(obj), msg);
  }

  public static void e(Object obj, String msg) {
    e(getTag(obj), msg);
  }

  public static void d(Object obj, String msg) {
    d(getTag(obj), msg);
  }

  public static void w(String tag, String msg) {
    Log.w(getTag(tag), msg);
  }

  public static void i(String tag, String msg) {
    Log.i(getTag(tag), msg);
  }

  public static void v(String tag, String msg) {
    Log.v(getTag(tag), msg);
  }

  public static void e(String tag, String msg) {
    Log.e(getTag(tag), msg);
  }

  public static void d(String tag, String msg) {
    Log.d(getTag(tag), msg);
  }

  public static void logException(Exception exp) {
    Log.e("Exception", exp.getMessage(), exp);
    exp.printStackTrace();
  }

  private static String getTag(Object obj) {
    return (obj != null ? obj.getClass().getSimpleName() : "");
  }

  private static String getTag(String tag) {
    return "Rsv_" + tag;
  }
}




Java Source Code List

com.rsv.cache.BaseFileCache.java
com.rsv.cache.BaseMemCache.java
com.rsv.cache.LmtSizeMemCache.java
com.rsv.cache.LmtSpaceFileCache.java
com.rsv.comp.IProgressListener.java
com.rsv.comp.ImageLoader.java
com.rsv.config.ConfigReader.java
com.rsv.config.Constants.java
com.rsv.utils.FileUtils.java
com.rsv.utils.HttpClientUtils.java
com.rsv.utils.IOUtils.java
com.rsv.utils.ImgUtils.java
com.rsv.utils.LogUtils.java
com.rsv.utils.OSUtils.java
com.rsv.utils.StorageUtils.java
com.rsv.widget.WebImageView.java