Ejemplo n.º 1
0
  public static void wtf(Throwable tr) {
    if (!allowWtf) return;
    StackTraceElement caller = OtherUtils.getCallerStackTraceElement();
    String tag = generateTag(caller);

    if (customLogger != null) {
      customLogger.wtf(tag, tr);
    } else {
      Log.wtf(tag, tr);
    }
  }
Ejemplo n.º 2
0
  public static void d(String content, Throwable tr) {
    if (!allowD) return;
    StackTraceElement caller = OtherUtils.getCallerStackTraceElement();
    String tag = generateTag(caller);

    if (customLogger != null) {
      customLogger.d(tag, content, tr);
    } else {
      Log.d(tag, content, tr);
    }
  }
Ejemplo n.º 3
0
  public static void w(String content) {
    if (!allowW) return;
    StackTraceElement caller = OtherUtils.getCallerStackTraceElement();
    String tag = generateTag(caller);

    if (customLogger != null) {
      customLogger.w(tag, content);
    } else {
      Log.w(tag, content);
    }
  }