jimu-decompiled/sources/com/ubt/jimu/utils/LogUtils.java
2025-05-13 19:24:51 +02:00

53 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.ubt.jimu.utils;
import com.ubtrobot.log.ALog;
/* loaded from: classes2.dex */
public class LogUtils {
static String a;
static int b;
private static String a(String str) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append("(");
stringBuffer.append(a);
stringBuffer.append(":");
stringBuffer.append(b);
stringBuffer.append(")");
stringBuffer.append(" ");
stringBuffer.append(str);
return stringBuffer.toString();
}
public static boolean a() {
return false;
}
public static void b(String str) {
if (a()) {
a(new Throwable().getStackTrace());
ALog.a(a).d(a(str));
}
}
public static void c(String str) {
if (a()) {
a(new Throwable().getStackTrace());
ALog.a("TestLog").d(a(str));
}
}
public static void d(String str) {
if (a()) {
a(new Throwable().getStackTrace());
ALog.a(a).e(a(str), new Object[0]);
}
}
private static void a(StackTraceElement[] stackTraceElementArr) {
a = stackTraceElementArr[1].getFileName();
stackTraceElementArr[1].getMethodName();
b = stackTraceElementArr[1].getLineNumber();
}
}